Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00105/0.00105, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 225.6 MB / 234.8 MB, free: 3.227 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008265/0.0008265, allocations: 96.83 kB / 286.7 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.591e-05/2.604e-05, allocations: 4 kB / 343.8 MB, free: 8.145 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1116, allocations: 51.48 MB / 395.3 MB, free: 4.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3769/0.4886, allocations: 81.78 MB / 477.1 MB, free: 10.65 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001975/0.4888, allocations: 75.34 kB / 477.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01581/0.5046, allocations: 6.228 MB / 483.4 MB, free: 5.859 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5047, allocations: 0 / 483.4 MB, free: 5.859 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.24e-05/0.5047, allocations: 7.938 kB / 483.4 MB, free: 5.852 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.0009709/0.5057, allocations: 0.6184 MB / 484 MB, free: 5.211 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.5057, allocations: 8.031 kB / 484 MB, free: 5.203 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.215e-05/0.5058, allocations: 35.62 kB / 484 MB, free: 5.168 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003269/0.5062, allocations: 283.3 kB / 484.3 MB, free: 4.887 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.5062, allocations: 8 kB / 484.3 MB, free: 4.879 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.403e-05/0.5062, allocations: 12 kB / 484.3 MB, free: 4.867 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002923/0.5065, allocations: 172.6 kB / 484.5 MB, free: 4.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003301/0.5069, allocations: 233.5 kB / 484.7 MB, free: 4.586 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.5069, allocations: 4 kB / 484.7 MB, free: 4.582 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.268e-05/0.5069, allocations: 3.984 kB / 484.7 MB, free: 4.578 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.5069, allocations: 4 kB / 484.7 MB, free: 4.574 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001737/0.5087, allocations: 1.149 MB / 485.9 MB, free: 3.527 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000241/0.5089, allocations: 99.7 kB / 486 MB, free: 3.453 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.19e-05/0.509, allocations: 46.59 kB / 486 MB, free: 3.422 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.457e-05/0.5091, allocations: 7.938 kB / 486 MB, free: 3.414 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001815/0.5092, allocations: 105.2 kB / 486.1 MB, free: 3.309 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.5093, allocations: 0 / 486.1 MB, free: 3.309 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003486/0.5096, allocations: 144.5 kB / 486.3 MB, free: 3.184 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.371e-05/0.5097, allocations: 84.36 kB / 486.4 MB, free: 3.086 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.5099, allocations: 239.2 kB / 486.6 MB, free: 2.891 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.5099, allocations: 29.73 kB / 486.6 MB, free: 2.855 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.834e-05/0.51, allocations: 221.5 kB / 486.8 MB, free: 2.672 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.593e-05/0.51, allocations: 31.11 kB / 486.9 MB, free: 2.648 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.333e-05/0.5101, allocations: 0 / 486.9 MB, free: 2.648 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.547e-05/0.5101, allocations: 332.6 kB / 487.2 MB, free: 2.324 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.987e-05/0.5102, allocations: 52.47 kB / 487.2 MB, free: 2.293 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.5104, allocations: 153.6 kB / 487.4 MB, free: 2.121 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.979e-05/0.5105, allocations: 61.83 kB / 487.5 MB, free: 2.078 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.5105, allocations: 0 / 487.5 MB, free: 2.078 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003715/0.5108, allocations: 255 kB / 487.7 MB, free: 1.867 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.206e-05/0.5109, allocations: 33.69 kB / 487.7 MB, free: 1.828 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.5109, allocations: 4.5 kB / 487.7 MB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000161/0.5111, allocations: 40.17 kB / 487.8 MB, free: 1.785 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002563/0.5113, allocations: 67.39 kB / 487.8 MB, free: 1.723 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007045/0.5121, allocations: 1.255 MB / 489.1 MB, free: 420 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003172/0.5124, allocations: 55.86 kB / 489.2 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.261e-05/0.5124, allocations: 12 kB / 489.2 MB, free: 352 kB / 346.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 8.598e-05/0.5125, allocations: 118.2 kB / 489.3 MB, free: 232 kB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002124/0.5127, allocations: 140.4 kB / 489.4 MB, free: 108 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.866e-05/0.5128, allocations: 27.66 kB / 489.4 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.365e-05/0.5128, allocations: 28.55 kB / 489.5 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.5128, allocations: 0 / 489.5 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.5128, allocations: 0 / 489.5 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.5128, allocations: 7.984 kB / 489.5 MB, free: 52 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004166/0.5133, allocations: 404.5 kB / 489.9 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.5133, allocations: 3.984 kB / 489.9 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001869/0.5135, allocations: 43.81 kB / 489.9 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.468e-05/0.5136, allocations: 20.84 kB / 489.9 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.5136, allocations: 3.438 kB / 489.9 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008794/0.5145, allocations: 1.252 MB / 491.2 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.5145, allocations: 0.75 kB / 491.2 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000272/0.5148, allocations: 184.9 kB / 491.4 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.265e-05/0.5149, allocations: 104.2 kB / 491.5 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.491e-05/0.5149, allocations: 0 / 491.5 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/0.5152, allocations: 39.95 kB / 491.5 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.017e-05/0.5153, allocations: 15.42 kB / 491.5 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.5153, allocations: 7.922 kB / 491.5 MB, free: 13.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000185/0.5155, allocations: 191.6 kB / 491.7 MB, free: 13.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5155, allocations: 0 / 491.7 MB, free: 13.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000357/0.5158, allocations: 67.75 kB / 491.8 MB, free: 13.71 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.0006729/0.5165, allocations: 0.7868 MB / 492.6 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000473/0.517, allocations: 295.7 kB / 492.9 MB, free: 12.65 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.517, allocations: 4.125 kB / 492.9 MB, free: 12.65 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002152/0.5172, allocations: 159.5 kB / 493 MB, free: 12.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002724/0.5175, allocations: 45.05 kB / 493.1 MB, free: 12.47 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008118/0.5183, allocations: 349.5 kB / 493.4 MB, free: 12.12 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003166/0.5187, allocations: 0.7599 MB / 494.2 MB, free: 11.34 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001405/0.5188, allocations: 30.08 kB / 494.2 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.519, allocations: 88.08 kB / 494.3 MB, free: 11.27 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.519, allocations: 0 / 494.3 MB, free: 11.27 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02626/0.5452, allocations: 4.391 MB / 498.7 MB, free: 6.965 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002201/0.5455, allocations: 141.3 kB / 498.8 MB, free: 6.777 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.718/2.263, allocations: 0 / 498.8 MB, free: 6.777 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat