Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 180.1 kB / 8.13 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.117/1.117, allocations: 221.4 MB / 229.9 MB, free: 3.078 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009796/0.0009795, allocations: 93.94 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09967/0.1007, allocations: 55.82 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2011/0.3018, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08549/0.3873, allocations: 80.91 MB / 467.9 MB, free: 5.848 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002184/0.3876, allocations: 83.88 kB / 468 MB, free: 5.766 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.01886/0.4064, allocations: 6.62 MB / 474.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.4065, allocations: 11.84 kB / 474.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.4066, allocations: 35.53 kB / 474.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003923/0.407, allocations: 286.6 kB / 474.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.033e-05/0.407, allocations: 8 kB / 475 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.105e-05/0.4071, allocations: 20 kB / 475 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003377/0.4074, allocations: 169 kB / 475.1 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004001/0.4078, allocations: 234.8 kB / 475.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.4079, allocations: 7.984 kB / 475.4 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.729e-05/0.4079, allocations: 3.906 kB / 475.4 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.4079, allocations: 4 kB / 475.4 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.41, allocations: 1.164 MB / 476.6 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002748/0.4103, allocations: 94.66 kB / 476.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.791e-05/0.4104, allocations: 47.52 kB / 476.7 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.4105, allocations: 0 / 476.7 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001412/0.4106, allocations: 105.1 kB / 476.8 MB, free: 12.78 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.193e-06/0.4106, allocations: 0 / 476.8 MB, free: 12.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003448/0.411, allocations: 130.2 kB / 476.9 MB, free: 12.64 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.787e-05/0.411, allocations: 89.05 kB / 477 MB, free: 12.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002578/0.4113, allocations: 240.9 kB / 477.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/0.4113, allocations: 29.73 kB / 477.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.4114, allocations: 191.4 kB / 477.5 MB, free: 12.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.038e-05/0.4115, allocations: 35.56 kB / 477.5 MB, free: 12.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.226e-05/0.4115, allocations: 0 / 477.5 MB, free: 12.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.4116, allocations: 330.8 kB / 477.8 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.4117, allocations: 60.16 kB / 477.9 MB, free: 11.65 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000166/0.4119, allocations: 154.8 kB / 478 MB, free: 11.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001286/0.412, allocations: 67.14 kB / 478.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.412, allocations: 4 kB / 478.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000443/0.4125, allocations: 235 kB / 478.3 MB, free: 11.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.4125, allocations: 8 kB / 478.3 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.4125, allocations: 5.312 kB / 478.3 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001753/0.4127, allocations: 36.78 kB / 478.4 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003215/0.4131, allocations: 75.88 kB / 478.4 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009503/0.414, allocations: 1.244 MB / 479.7 MB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003649/0.4144, allocations: 59.75 kB / 479.7 MB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.81e-05/0.4144, allocations: 16 kB / 479.8 MB, free: 9.582 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.455e-05/0.4145, allocations: 120.1 kB / 479.9 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.773e-05/0.4146, allocations: 23.72 kB / 479.9 MB, free: 9.438 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.341e-05/0.4146, allocations: 21.7 kB / 479.9 MB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.4146, allocations: 6.25 kB / 479.9 MB, free: 9.414 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.4146, allocations: 4 kB / 479.9 MB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.4147, allocations: 7.922 kB / 479.9 MB, free: 9.402 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004062/0.4151, allocations: 407.8 kB / 480.3 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.4151, allocations: 3.938 kB / 480.3 MB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/0.4153, allocations: 44 kB / 480.4 MB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001013/0.4154, allocations: 20.84 kB / 480.4 MB, free: 8.887 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.4154, allocations: 4 kB / 480.4 MB, free: 8.883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008423/0.4163, allocations: 1.252 MB / 481.7 MB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.4163, allocations: 0 / 481.7 MB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002589/0.4165, allocations: 176.1 kB / 481.8 MB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003339/0.4169, allocations: 0.5488 MB / 482.4 MB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.145e-05/0.417, allocations: 100.8 kB / 482.5 MB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.305e-05/0.417, allocations: 4 kB / 482.5 MB, free: 6.609 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002727/0.4173, allocations: 39.88 kB / 482.5 MB, free: 6.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.636e-05/0.4174, allocations: 23.95 kB / 482.6 MB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.257e-05/0.4174, allocations: 4 kB / 482.6 MB, free: 6.543 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001698/0.4176, allocations: 181.2 kB / 482.7 MB, free: 6.367 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008932/0.4185, allocations: 67.84 kB / 482.8 MB, free: 6.301 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001421/0.4186, allocations: 104.2 kB / 482.9 MB, free: 6.188 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004536/0.4191, allocations: 267.3 kB / 483.2 MB, free: 5.914 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.4191, allocations: 0 / 483.2 MB, free: 5.914 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002363/0.4193, allocations: 161.8 kB / 483.3 MB, free: 5.746 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002652/0.4196, allocations: 53.03 kB / 483.4 MB, free: 5.695 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006461/0.4203, allocations: 277.8 kB / 483.6 MB, free: 5.395 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004024/0.4207, allocations: 0.7939 MB / 484.4 MB, free: 4.578 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4207, allocations: 0 / 484.4 MB, free: 4.578 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat