Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.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.Differentiator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 177.1 kB / 8.35 MB, free: 0.7266 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.349/1.349, allocations: 221.5 MB / 230.3 MB, free: 7.578 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.0009231/0.0009231, allocations: 84.81 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.969e-05/1.971e-05, allocations: 4 kB / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1029, allocations: 50.43 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3854/0.4884, allocations: 80.78 MB / 468.4 MB, free: 13.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/0.4887, allocations: 77.7 kB / 468.4 MB, free: 13.83 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01881/0.5075, allocations: 6.238 MB / 474.7 MB, free: 7.586 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.5076, allocations: 0 / 474.7 MB, free: 7.586 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.652e-05/0.5076, allocations: 4 kB / 474.7 MB, free: 7.582 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.000965/0.5086, allocations: 0.5847 MB / 475.3 MB, free: 6.941 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.5086, allocations: 12.03 kB / 475.3 MB, free: 6.93 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.432e-05/0.5087, allocations: 31.62 kB / 475.3 MB, free: 6.898 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003414/0.5091, allocations: 292 kB / 475.6 MB, free: 6.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.5091, allocations: 8.688 kB / 475.6 MB, free: 6.562 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.609e-05/0.5091, allocations: 16 kB / 475.6 MB, free: 6.547 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003256/0.5095, allocations: 173.1 kB / 475.8 MB, free: 6.379 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003958/0.5099, allocations: 230.6 kB / 476 MB, free: 6.141 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.5099, allocations: 3.938 kB / 476 MB, free: 6.137 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.5099, allocations: 0 / 476 MB, free: 6.137 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.5099, allocations: 8 kB / 476 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001731/0.5117, allocations: 1.08 MB / 477.1 MB, free: 4.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000323/0.512, allocations: 142.6 kB / 477.2 MB, free: 4.832 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.264e-05/0.5121, allocations: 60.86 kB / 477.3 MB, free: 4.77 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.5122, allocations: 7.984 kB / 477.3 MB, free: 4.762 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002156/0.5124, allocations: 121 kB / 477.4 MB, free: 4.625 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.313e-06/0.5124, allocations: 0 / 477.4 MB, free: 4.625 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002873/0.5127, allocations: 125.6 kB / 477.5 MB, free: 4.496 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.595e-05/0.5128, allocations: 85.05 kB / 477.6 MB, free: 4.395 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002514/0.513, allocations: 216.5 kB / 477.8 MB, free: 4.176 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.85e-05/0.5131, allocations: 25.7 kB / 477.9 MB, free: 4.145 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.5132, allocations: 203.7 kB / 478.1 MB, free: 3.938 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.734e-05/0.5132, allocations: 40.58 kB / 478.1 MB, free: 3.898 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.13e-05/0.5133, allocations: 0 / 478.1 MB, free: 3.898 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.5135, allocations: 330.8 kB / 478.4 MB, free: 3.566 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.5136, allocations: 52.23 kB / 478.5 MB, free: 3.512 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001551/0.5137, allocations: 143.6 kB / 478.6 MB, free: 3.332 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000117/0.5139, allocations: 61.28 kB / 478.7 MB, free: 3.273 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.5139, allocations: 0 / 478.7 MB, free: 3.273 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003638/0.5142, allocations: 218 kB / 478.9 MB, free: 3.055 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.673e-05/0.5143, allocations: 42.84 kB / 478.9 MB, free: 3.008 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.5143, allocations: 0 / 478.9 MB, free: 3.008 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.5143, allocations: 4 kB / 478.9 MB, free: 3.004 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003024/0.5146, allocations: 71.89 kB / 479 MB, free: 2.934 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.5147, allocations: 11.88 kB / 479 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002977/0.515, allocations: 55.7 kB / 479.1 MB, free: 2.867 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.351e-05/0.515, allocations: 16 kB / 479.1 MB, free: 2.852 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (26): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.789e-05/0.5151, allocations: 116 kB / 479.2 MB, free: 2.734 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002017/0.5153, allocations: 137.4 kB / 479.3 MB, free: 2.594 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.945e-05/0.5154, allocations: 23.72 kB / 479.4 MB, free: 2.57 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.256e-05/0.5154, allocations: 25.83 kB / 479.4 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.5154, allocations: 0 / 479.4 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.5154, allocations: 4 kB / 479.4 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.5154, allocations: 0 / 479.4 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002583/0.5157, allocations: 262 kB / 479.6 MB, free: 2.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.5157, allocations: 0 / 479.6 MB, free: 2.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002604/0.516, allocations: 55.91 kB / 479.7 MB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.516, allocations: 7.938 kB / 479.7 MB, free: 2.188 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.516, allocations: 4 kB / 479.7 MB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.516, allocations: 0 / 479.7 MB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.516, allocations: 3.984 kB / 479.7 MB, free: 2.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003638/0.5164, allocations: 235.6 kB / 479.9 MB, free: 1.934 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.507e-05/0.5165, allocations: 92.86 kB / 480 MB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.153e-05/0.5165, allocations: 7.953 kB / 480 MB, free: 1.816 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002502/0.5168, allocations: 40.02 kB / 480.1 MB, free: 1.777 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.876e-05/0.5169, allocations: 19.97 kB / 480.1 MB, free: 1.758 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.5169, allocations: 4 kB / 480.1 MB, free: 1.754 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001612/0.517, allocations: 168.5 kB / 480.3 MB, free: 1.594 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5171, allocations: 0 / 480.3 MB, free: 1.594 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003476/0.5174, allocations: 63.78 kB / 480.3 MB, free: 1.531 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (der_.c.v) * 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 (12): * Single equations (assignments): 10 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007374/0.5182, allocations: 0.7645 MB / 481.1 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003126/0.5185, allocations: 187.8 kB / 481.3 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5185, allocations: 0.75 kB / 481.3 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.5186, allocations: 59.92 kB / 481.3 MB, free: 492 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000296/0.5189, allocations: 44.31 kB / 481.4 MB, free: 448 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009532/0.5199, allocations: 388.5 kB / 481.8 MB, free: 24 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003763/0.5203, allocations: 0.7555 MB / 482.5 MB, free: 15.24 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001222/0.5204, allocations: 30.06 kB / 482.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001339/0.5205, allocations: 79.41 kB / 482.6 MB, free: 15.14 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5206, allocations: 4 kB / 482.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02476/0.5453, allocations: 4.226 MB / 486.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001984/0.5456, allocations: 147 kB / 487 MB, free: 10.75 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.767/2.313, allocations: 2.75 kB / 487 MB, free: 10.75 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat does not exist to compare? outputFormat=mat