Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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.Integrator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",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.0009491/0.0009492, allocations: 179.3 kB / 8.478 MB, free: 1.871 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.093/1.093, allocations: 205.2 MB / 214.1 MB, free: 1.816 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.0008408/0.0008408, allocations: 87.38 kB / 262.1 MB, free: 1.773 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1416/0.1425, allocations: 52.98 MB / 315.1 MB, free: 22.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06928/0.2118, allocations: 47.58 MB / 362.7 MB, free: 7.285 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2166/0.4285, allocations: 78.68 MB / 441.3 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001923/0.4287, allocations: 86.8 kB / 441.4 MB, free: 0.9492 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.01653/0.4452, allocations: 5.788 MB / 447.2 MB, free: 11.97 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.4453, allocations: 11.98 kB / 447.2 MB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.52e-05/0.4454, allocations: 27.72 kB / 447.2 MB, free: 11.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.4457, allocations: 262.1 kB / 447.5 MB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.4457, allocations: 4 kB / 447.5 MB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.902e-05/0.4458, allocations: 15.94 kB / 447.5 MB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002747/0.4461, allocations: 144 kB / 447.7 MB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002781/0.4464, allocations: 163.7 kB / 447.8 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.4464, allocations: 0 / 447.8 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.491e-05/0.4464, allocations: 11.89 kB / 447.8 MB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.4464, allocations: 4 kB / 447.8 MB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001445/0.4479, allocations: 0.8558 MB / 448.7 MB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003362/0.4482, allocations: 136.7 kB / 448.8 MB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.84e-05/0.4483, allocations: 57.73 kB / 448.9 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.4484, allocations: 0 / 448.9 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001529/0.4485, allocations: 109.7 kB / 449 MB, free: 10.38 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 1.082e-06/0.4485, allocations: 0 / 449 MB, free: 10.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004381/0.449, allocations: 189.5 kB / 449.2 MB, free: 10.21 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/0.449, allocations: 81.11 kB / 449.3 MB, free: 10.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.4492, allocations: 201.5 kB / 449.5 MB, free: 9.941 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.4492, allocations: 29.7 kB / 449.5 MB, free: 9.906 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.712e-05/0.4493, allocations: 145.5 kB / 449.6 MB, free: 9.773 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.74e-05/0.4494, allocations: 50.55 kB / 449.7 MB, free: 9.73 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.075e-05/0.4494, allocations: 0 / 449.7 MB, free: 9.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.4495, allocations: 329.8 kB / 450 MB, free: 9.406 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.612e-05/0.4496, allocations: 42.12 kB / 450 MB, free: 9.379 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.4497, allocations: 106.8 kB / 450.1 MB, free: 9.277 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.751e-05/0.4498, allocations: 42.42 kB / 450.2 MB, free: 9.25 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4498, allocations: 0 / 450.2 MB, free: 9.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004635/0.4503, allocations: 249 kB / 450.4 MB, free: 9.039 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002304/0.4505, allocations: 0.6149 MB / 451 MB, free: 8.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.4505, allocations: 0 / 451 MB, free: 8.391 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001452/0.4507, allocations: 39.66 kB / 451.1 MB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002322/0.4509, allocations: 51.95 kB / 451.1 MB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000375/0.4513, allocations: 0.5615 MB / 451.7 MB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002874/0.4516, allocations: 47.92 kB / 451.7 MB, free: 7.688 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.4516, allocations: 7.062 kB / 451.7 MB, free: 7.684 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.773e-06/0.4516, allocations: 4 kB / 451.8 MB, free: 7.68 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002565/0.4519, allocations: 143.4 kB / 451.9 MB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.4519, allocations: 4.188 kB / 451.9 MB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.5e-05/0.452, allocations: 32.53 kB / 451.9 MB, free: 7.535 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.4522, allocations: 55.41 kB / 452 MB, free: 7.484 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009176/0.4532, allocations: 1.316 MB / 453.3 MB, free: 6.094 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002509/0.4534, allocations: 39.92 kB / 453.3 MB, free: 6.055 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.4534, allocations: 15.97 kB / 453.4 MB, free: 6.039 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: 7 * 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 (20): * Single equations (assignments): 18 * 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.0001356/0.4536, allocations: 122.6 kB / 453.5 MB, free: 5.918 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.432e-05/0.4536, allocations: 19.72 kB / 453.5 MB, free: 5.898 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.435e-05/0.4537, allocations: 21.02 kB / 453.5 MB, free: 5.883 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.4537, allocations: 4 kB / 453.5 MB, free: 5.879 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.4537, allocations: 0 / 453.5 MB, free: 5.879 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.4537, allocations: 0 / 453.5 MB, free: 5.879 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002115/0.4539, allocations: 240.3 kB / 453.7 MB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.4539, allocations: 3.938 kB / 453.8 MB, free: 5.637 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002165/0.4542, allocations: 43.97 kB / 453.8 MB, free: 5.594 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.964e-05/0.4542, allocations: 31.59 kB / 453.8 MB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.4543, allocations: 4 kB / 453.8 MB, free: 5.562 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009783/0.4553, allocations: 1.316 MB / 455.1 MB, free: 4.188 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.4553, allocations: 0 / 455.1 MB, free: 4.188 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004567/0.4557, allocations: 273.8 kB / 455.4 MB, free: 3.957 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006503/0.4564, allocations: 0.7025 MB / 456.1 MB, free: 3.316 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.209e-05/0.4565, allocations: 96.84 kB / 456.2 MB, free: 3.207 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.576e-05/0.4565, allocations: 64 / 456.2 MB, free: 3.207 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002418/0.4568, allocations: 39.97 kB / 456.3 MB, free: 3.168 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.762e-05/0.4568, allocations: 23.75 kB / 456.3 MB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.4569, allocations: 4 kB / 456.3 MB, free: 3.145 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001242/0.457, allocations: 152.2 kB / 456.4 MB, free: 3.023 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001533/0.4585, allocations: 103.9 kB / 456.5 MB, free: 2.922 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (11): * Single equations (assignments): 8 * 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.0001459/0.4587, allocations: 103.2 kB / 456.6 MB, free: 2.809 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005379/0.4592, allocations: 369.2 kB / 457 MB, free: 2.492 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4592, allocations: 0 / 457 MB, free: 2.492 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001888/0.4594, allocations: 164.8 kB / 457.2 MB, free: 2.344 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002365/0.4597, allocations: 37 kB / 457.2 MB, free: 2.312 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007298/0.4604, allocations: 335.2 kB / 457.5 MB, free: 1.996 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000339/0.4608, allocations: 0.7751 MB / 458.3 MB, free: 1.195 MB / 330.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4608, allocations: 0 / 458.3 MB, free: 1.195 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Integrator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Integrator.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat does not exist to compare? outputFormat=mat