Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower",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 3.2.3+maint.om/package.mo): time 0.0009293/0.0009294, allocations: 188.1 kB / 8.482 MB, free: 1.863 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.054/1.054, allocations: 205.2 MB / 214.1 MB, free: 1.891 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008252/0.0008251, allocations: 79.41 kB / 262.1 MB, free: 1.836 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1374/0.1383, allocations: 52.98 MB / 315.1 MB, free: 22.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0718/0.2101, allocations: 47.59 MB / 362.7 MB, free: 7.281 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.206/0.4162, allocations: 78.55 MB / 441.2 MB, free: 1.137 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001833/0.4164, allocations: 74.58 kB / 441.3 MB, free: 1.098 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.01607/0.4325, allocations: 5.972 MB / 447.3 MB, free: 11.95 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.944e-05/0.4325, allocations: 8 kB / 447.3 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.308e-05/0.4326, allocations: 31.62 kB / 447.3 MB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003168/0.4329, allocations: 266.9 kB / 447.6 MB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.433, allocations: 9.125 kB / 447.6 MB, free: 11.63 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.021e-05/0.433, allocations: 12 kB / 447.6 MB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002789/0.4333, allocations: 151.7 kB / 447.7 MB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002817/0.4336, allocations: 169.1 kB / 447.9 MB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.4336, allocations: 4 kB / 447.9 MB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.4336, allocations: 3.938 kB / 447.9 MB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.4336, allocations: 8 kB / 447.9 MB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.4351, allocations: 0.8632 MB / 448.8 MB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000206/0.4353, allocations: 181.9 kB / 448.9 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.716e-05/0.4354, allocations: 43.92 kB / 449 MB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.4355, allocations: 7.984 kB / 449 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001575/0.4356, allocations: 115.7 kB / 449.1 MB, free: 10.28 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.4356, allocations: 0 / 449.1 MB, free: 10.28 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004393/0.4361, allocations: 175.3 kB / 449.3 MB, free: 10.12 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.4361, allocations: 110.8 kB / 449.4 MB, free: 9.988 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002096/0.4364, allocations: 218.2 kB / 449.6 MB, free: 9.801 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.4364, allocations: 32.52 kB / 449.6 MB, free: 9.766 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.566e-05/0.4365, allocations: 165.9 kB / 449.8 MB, free: 9.613 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.687e-05/0.4365, allocations: 30.8 kB / 449.8 MB, free: 9.586 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.092e-05/0.4365, allocations: 0 / 449.8 MB, free: 9.586 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.4367, allocations: 337.6 kB / 450.2 MB, free: 9.258 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.405e-05/0.4368, allocations: 42.12 kB / 450.2 MB, free: 9.234 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.4369, allocations: 146.8 kB / 450.3 MB, free: 9.07 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.612e-05/0.437, allocations: 57.7 kB / 450.4 MB, free: 9.031 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.437, allocations: 0 / 450.4 MB, free: 9.031 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004856/0.4375, allocations: 261.8 kB / 450.6 MB, free: 8.805 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003723/0.4379, allocations: 1.136 MB / 451.8 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.4379, allocations: 4 kB / 451.8 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001414/0.4381, allocations: 35.47 kB / 451.8 MB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002516/0.4383, allocations: 63.77 kB / 451.9 MB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003673/0.4387, allocations: 0.5539 MB / 452.4 MB, free: 6.941 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003227/0.439, allocations: 63.84 kB / 452.5 MB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.206e-05/0.4391, allocations: 15.88 kB / 452.5 MB, free: 6.867 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.871e-06/0.4391, allocations: 4 kB / 452.5 MB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002821/0.4394, allocations: 159.7 kB / 452.7 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.4394, allocations: 4.375 kB / 452.7 MB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.452e-05/0.4394, allocations: 28.41 kB / 452.7 MB, free: 6.707 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002498/0.4397, allocations: 55.91 kB / 452.8 MB, free: 6.652 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009255/0.4406, allocations: 1.326 MB / 454.1 MB, free: 5.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002776/0.4409, allocations: 43.91 kB / 454.1 MB, free: 5.207 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.441, allocations: 11.38 kB / 454.1 MB, free: 5.199 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.simplifiedExpr:VARIABLE(unit = "V" protected = true ) "Simplified expression for homotopy-based initialization" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (23): * Single equations (assignments): 21 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000152/0.4411, allocations: 126 kB / 454.3 MB, free: 5.07 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.4e-05/0.4412, allocations: 19.72 kB / 454.3 MB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.906e-05/0.4412, allocations: 26.45 kB / 454.3 MB, free: 5.039 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.4412, allocations: 0 / 454.3 MB, free: 5.039 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.4412, allocations: 4 kB / 454.3 MB, free: 5.035 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.4412, allocations: 0 / 454.3 MB, free: 5.035 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006174/0.4418, allocations: 0.4979 MB / 454.8 MB, free: 4.559 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.4419, allocations: 0 / 454.8 MB, free: 4.559 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001565/0.442, allocations: 35.84 kB / 454.8 MB, free: 4.527 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.493e-05/0.4421, allocations: 32.16 kB / 454.9 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.4421, allocations: 0 / 454.9 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009231/0.4431, allocations: 1.308 MB / 456.2 MB, free: 3.121 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4431, allocations: 3.938 kB / 456.2 MB, free: 3.117 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000353/0.4434, allocations: 268.2 kB / 456.5 MB, free: 2.863 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004795/0.4439, allocations: 0.6538 MB / 457.1 MB, free: 2.219 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.409e-05/0.444, allocations: 100.8 kB / 457.2 MB, free: 2.102 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.846e-05/0.444, allocations: 3.438 kB / 457.2 MB, free: 2.102 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002759/0.4443, allocations: 39.97 kB / 457.2 MB, free: 2.062 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.486e-05/0.4444, allocations: 19.91 kB / 457.3 MB, free: 2.047 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.4444, allocations: 0 / 457.3 MB, free: 2.047 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001569/0.4446, allocations: 172.6 kB / 457.4 MB, free: 1.914 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001586/0.4462, allocations: 111.6 kB / 457.5 MB, free: 1.805 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001464/0.4463, allocations: 103.2 kB / 457.6 MB, free: 1.695 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005801/0.4469, allocations: 383.8 kB / 458 MB, free: 1.363 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4469, allocations: 0.5625 kB / 458 MB, free: 1.363 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001995/0.4471, allocations: 158.8 kB / 458.2 MB, free: 1.215 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002825/0.4474, allocations: 30.17 kB / 458.2 MB, free: 1.195 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006393/0.4481, allocations: 276.1 kB / 458.5 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003535/0.4484, allocations: 0.7754 MB / 459.3 MB, free: 128 kB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4484, allocations: 0 / 459.3 MB, free: 128 kB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower_res.mat does not exist to compare? outputFormat=mat