Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.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.DifferentialAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",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.001083/0.001083, allocations: 187.1 kB / 8.134 MB, free: 2.211 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.128/1.128, allocations: 221.4 MB / 229.9 MB, free: 2.996 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.0008995/0.0008994, allocations: 98.52 kB / 280.8 MB, free: 1.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09287/0.09379, allocations: 55.83 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1753/0.2691, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07905/0.3482, allocations: 82.02 MB / 469 MB, free: 4.766 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001922/0.3484, allocations: 87.89 kB / 469.1 MB, free: 4.68 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.02531/0.3738, allocations: 10.34 MB / 479.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.3738, allocations: 8 kB / 479.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.3739, allocations: 71.16 kB / 479.5 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005387/0.3745, allocations: 396.6 kB / 479.9 MB, free: 9.801 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.3745, allocations: 16 kB / 479.9 MB, free: 9.785 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.619e-05/0.3746, allocations: 32 kB / 480 MB, free: 9.754 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006013/0.3752, allocations: 334.6 kB / 480.3 MB, free: 9.426 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006985/0.3759, allocations: 442.5 kB / 480.7 MB, free: 8.984 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.3759, allocations: 0 / 480.7 MB, free: 8.984 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.322e-05/0.376, allocations: 11.84 kB / 480.7 MB, free: 8.973 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.376, allocations: 12 kB / 480.7 MB, free: 8.961 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002767/0.3788, allocations: 1.748 MB / 482.5 MB, free: 7.129 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005233/0.3793, allocations: 304.2 kB / 482.8 MB, free: 6.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000346/0.3797, allocations: 236.9 kB / 483 MB, free: 6.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.3797, allocations: 4.328 kB / 483 MB, free: 6.586 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003091/0.38, allocations: 246.2 kB / 483.3 MB, free: 6.309 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 2.906e-06/0.38, allocations: 3.984 kB / 483.3 MB, free: 6.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.00115/0.3812, allocations: 0.5049 MB / 483.8 MB, free: 5.789 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.3813, allocations: 235.3 kB / 484 MB, free: 5.504 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003584/0.3817, allocations: 336.8 kB / 484.3 MB, free: 5.172 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.3817, allocations: 29.64 kB / 484.4 MB, free: 5.137 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.3819, allocations: 267.8 kB / 484.6 MB, free: 4.867 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.429e-05/0.382, allocations: 134.1 kB / 484.8 MB, free: 4.734 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.727e-05/0.382, allocations: 0 / 484.8 MB, free: 4.734 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.3821, allocations: 350.7 kB / 485.1 MB, free: 4.383 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.3823, allocations: 113 kB / 485.2 MB, free: 4.273 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002784/0.3826, allocations: 265.7 kB / 485.5 MB, free: 3.941 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00023/0.3828, allocations: 153.5 kB / 485.6 MB, free: 3.793 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3828, allocations: 0 / 485.6 MB, free: 3.793 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001244/0.3841, allocations: 0.612 MB / 486.2 MB, free: 3.164 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.3841, allocations: 4 kB / 486.2 MB, free: 3.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3841, allocations: 5.312 kB / 486.2 MB, free: 3.156 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003516/0.3845, allocations: 120.8 kB / 486.4 MB, free: 3.035 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003344/0.3848, allocations: 87.89 kB / 486.4 MB, free: 2.949 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002916/0.3877, allocations: 2.243 MB / 488.7 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004145/0.3882, allocations: 79.55 kB / 488.8 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.195e-05/0.3882, allocations: 20 kB / 488.8 MB, free: 0.4961 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.in_n.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real resistorGround.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * 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: 0 * Non-linear torn systems: 1 {3 13} Notification: Performance of prepare postOptimizeDAE: time 0.0001459/0.3884, allocations: 129 kB / 488.9 MB, free: 372 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.118e-05/0.3884, allocations: 47.44 kB / 489 MB, free: 324 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.083e-05/0.3885, allocations: 45.52 kB / 489 MB, free: 280 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.271e-06/0.3885, allocations: 4 kB / 489 MB, free: 276 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-06/0.3885, allocations: 7.938 kB / 489 MB, free: 268 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.3885, allocations: 0 / 489 MB, free: 268 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001654/0.3902, allocations: 1.054 MB / 490.1 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.3902, allocations: 4 kB / 490.1 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002238/0.3904, allocations: 51.91 kB / 490.1 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002868/0.3907, allocations: 122.5 kB / 490.2 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.054e-05/0.3908, allocations: 0 / 490.2 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002864/0.3936, allocations: 2.214 MB / 492.5 MB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3937, allocations: 0 / 492.5 MB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001279/0.3949, allocations: 0.7616 MB / 493.2 MB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001574/0.3965, allocations: 1.273 MB / 494.5 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.3966, allocations: 136.7 kB / 494.6 MB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.807e-05/0.3967, allocations: 0 / 494.6 MB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003656/0.3971, allocations: 44.03 kB / 494.7 MB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.839e-05/0.3972, allocations: 27.88 kB / 494.7 MB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.271e-05/0.3972, allocations: 11.98 kB / 494.7 MB, free: 10.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002505/0.3974, allocations: 252.9 kB / 495 MB, free: 10.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001109/0.3986, allocations: 167.5 kB / 495.1 MB, free: 9.934 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 0 * Non-linear torn systems: 1 {3 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001753/0.3987, allocations: 119.2 kB / 495.2 MB, free: 9.809 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.3998, allocations: 0.5319 MB / 495.8 MB, free: 9.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3998, allocations: 4.125 kB / 495.8 MB, free: 9.266 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007404/0.4006, allocations: 377.8 kB / 496.1 MB, free: 8.887 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003436/0.4009, allocations: 46.14 kB / 496.2 MB, free: 8.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/0.4022, allocations: 0.6118 MB / 496.8 MB, free: 8.207 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000493/0.4027, allocations: 0.9096 MB / 497.7 MB, free: 7.27 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4028, allocations: 0.75 kB / 497.7 MB, free: 7.27 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat does not exist to compare? outputFormat=mat