Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.HighPass.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.HighPass,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_HighPass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.HighPass,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_HighPass",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.001071/0.001071, allocations: 178.1 kB / 8.476 MB, free: 1.844 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.081/1.081, allocations: 205.2 MB / 214.1 MB, free: 5.117 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.0008261/0.0008262, allocations: 101.9 kB / 262.1 MB, free: 5.152 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1619/0.1628, allocations: 52.98 MB / 315.1 MB, free: 41.35 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06605/0.2288, allocations: 47.58 MB / 362.6 MB, free: 9.809 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.21/0.4389, allocations: 78.57 MB / 441.2 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001902/0.4391, allocations: 79.7 kB / 441.3 MB, free: 10.64 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.01675/0.4559, allocations: 6.406 MB / 447.7 MB, free: 9.328 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.4559, allocations: 7.469 kB / 447.7 MB, free: 9.328 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.456, allocations: 38 kB / 447.7 MB, free: 9.309 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003593/0.4564, allocations: 285.5 kB / 448 MB, free: 9.059 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/0.4564, allocations: 11.67 kB / 448 MB, free: 9.055 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.244e-05/0.4565, allocations: 11.25 kB / 448 MB, free: 9.055 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002981/0.4568, allocations: 164 kB / 448.2 MB, free: 9.051 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002781/0.4571, allocations: 173.5 kB / 448.4 MB, free: 8.996 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.4571, allocations: 0 / 448.4 MB, free: 8.996 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.39e-05/0.4571, allocations: 3.844 kB / 448.4 MB, free: 8.996 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.4571, allocations: 11.83 kB / 448.4 MB, free: 8.988 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001461/0.4586, allocations: 0.9445 MB / 449.3 MB, free: 8.387 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000266/0.4589, allocations: 147.1 kB / 449.5 MB, free: 8.352 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.125e-05/0.459, allocations: 64.97 kB / 449.5 MB, free: 8.34 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.459, allocations: 0 / 449.5 MB, free: 8.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001417/0.4592, allocations: 134 kB / 449.7 MB, free: 8.246 MB / 314.7 MB Notification: Performance of pre-optimization done (n=16): time 1.253e-06/0.4592, allocations: 0 / 449.7 MB, free: 8.246 MB / 314.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004732/0.4596, allocations: 223.8 kB / 449.9 MB, free: 8.16 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.653e-05/0.4597, allocations: 102.8 kB / 450 MB, free: 8.035 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.4599, allocations: 216.5 kB / 450.2 MB, free: 7.926 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.4599, allocations: 26.64 kB / 450.2 MB, free: 7.895 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.064e-05/0.4599, allocations: 161.4 kB / 450.4 MB, free: 7.754 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.073e-05/0.46, allocations: 53.91 kB / 450.4 MB, free: 7.719 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.214e-05/0.46, allocations: 0 / 450.4 MB, free: 7.719 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.423e-05/0.46, allocations: 340.9 kB / 450.8 MB, free: 7.395 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.028e-05/0.4601, allocations: 54.64 kB / 450.8 MB, free: 7.387 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.4603, allocations: 127.5 kB / 450.9 MB, free: 7.301 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.524e-05/0.4604, allocations: 59.16 kB / 451 MB, free: 7.285 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.4604, allocations: 3.875 kB / 451 MB, free: 7.285 MB / 314.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004644/0.4608, allocations: 279 kB / 451.3 MB, free: 7.195 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.41e-05/0.4609, allocations: 0.6183 MB / 451.9 MB, free: 6.547 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4609, allocations: 0 / 451.9 MB, free: 6.547 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001893/0.4611, allocations: 54.08 kB / 452 MB, free: 6.527 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000218/0.4614, allocations: 54.45 kB / 452 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000285/0.4617, allocations: 0.5883 MB / 452.6 MB, free: 5.977 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000302/0.462, allocations: 54.7 kB / 452.6 MB, free: 5.953 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.167e-05/0.462, allocations: 11.38 kB / 452.7 MB, free: 5.953 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.781e-06/0.462, allocations: 7.719 kB / 452.7 MB, free: 5.949 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000289/0.4623, allocations: 182.5 kB / 452.8 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.4623, allocations: 0 / 452.8 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.139e-05/0.4624, allocations: 34.47 kB / 452.9 MB, free: 5.895 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002129/0.4626, allocations: 58.75 kB / 452.9 MB, free: 5.879 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008254/0.4635, allocations: 1.473 MB / 454.4 MB, free: 4.547 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002686/0.4638, allocations: 47.03 kB / 454.5 MB, free: 4.527 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.4638, allocations: 3.938 kB / 454.5 MB, free: 4.527 MB / 314.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 (21): * Single equations (assignments): 19 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001107/0.4639, allocations: 117.2 kB / 454.6 MB, free: 4.414 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.274e-05/0.4639, allocations: 23.25 kB / 454.6 MB, free: 4.402 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.069e-05/0.464, allocations: 24.42 kB / 454.6 MB, free: 4.395 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.464, allocations: 0 / 454.6 MB, free: 4.395 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.464, allocations: 3.906 kB / 454.6 MB, free: 4.395 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.464, allocations: 3.906 kB / 454.6 MB, free: 4.391 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001755/0.4642, allocations: 261.1 kB / 454.9 MB, free: 4.188 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.4642, allocations: 0 / 454.9 MB, free: 4.188 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001966/0.4644, allocations: 46.84 kB / 454.9 MB, free: 4.168 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001156/0.4645, allocations: 46.48 kB / 455 MB, free: 4.152 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.4645, allocations: 0 / 455 MB, free: 4.152 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001008/0.4656, allocations: 1.456 MB / 456.4 MB, free: 18.88 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.4656, allocations: 3.938 kB / 456.4 MB, free: 18.88 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004706/0.466, allocations: 324.3 kB / 456.8 MB, free: 18.75 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006794/0.4667, allocations: 0.7448 MB / 457.5 MB, free: 18.27 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.617e-05/0.4668, allocations: 108.5 kB / 457.6 MB, free: 18.15 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.446e-05/0.4669, allocations: 3.688 kB / 457.6 MB, free: 18.15 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002548/0.4671, allocations: 45.84 kB / 457.7 MB, free: 18.13 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.058e-05/0.4672, allocations: 15.06 kB / 457.7 MB, free: 18.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.4672, allocations: 3.688 kB / 457.7 MB, free: 18.12 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001274/0.4673, allocations: 173.8 kB / 457.8 MB, free: 18.04 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00155/0.4689, allocations: 128.8 kB / 458 MB, free: 18.01 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001431/0.4691, allocations: 111.5 kB / 458.1 MB, free: 17.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005761/0.4696, allocations: 416.1 kB / 458.5 MB, free: 17.72 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4697, allocations: 0 / 458.5 MB, free: 17.72 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002103/0.4699, allocations: 180.2 kB / 458.7 MB, free: 17.61 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002429/0.4701, allocations: 34.33 kB / 458.7 MB, free: 17.6 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00069/0.4708, allocations: 357.6 kB / 459 MB, free: 17.39 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000314/0.4712, allocations: 0.7822 MB / 459.8 MB, free: 16.64 MB / 330.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4712, allocations: 0 / 459.8 MB, free: 16.64 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.HighPass.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.HighPass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.HighPass.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.HighPass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.HighPass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_HighPass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_HighPass.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.HighPass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.HighPass_res.mat does not exist to compare? outputFormat=mat