Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",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.001155/0.001155, allocations: 180.8 kB / 8.136 MB, free: 2.133 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.143/1.143, allocations: 221.4 MB / 229.9 MB, free: 3.035 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.0009406/0.0009403, allocations: 92.47 kB / 280.8 MB, free: 1.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0999/0.1009, allocations: 55.83 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.3126, allocations: 50.4 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08326/0.3959, allocations: 79.1 MB / 466.1 MB, free: 7.703 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001872/0.3961, allocations: 76.64 kB / 466.2 MB, free: 7.629 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.01775/0.4139, allocations: 6.313 MB / 472.5 MB, free: 1.281 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.414, allocations: 16 kB / 472.5 MB, free: 1.266 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.392e-05/0.414, allocations: 33.12 kB / 472.5 MB, free: 1.234 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003183/0.4144, allocations: 263.5 kB / 472.8 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.4144, allocations: 8 kB / 472.8 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.389e-05/0.4144, allocations: 12 kB / 472.8 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003104/0.4147, allocations: 157.9 kB / 473 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003703/0.4151, allocations: 221.7 kB / 473.2 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.4151, allocations: 0 / 473.2 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.003e-05/0.4152, allocations: 7.906 kB / 473.2 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.4152, allocations: 12 kB / 473.2 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001596/0.4168, allocations: 1.066 MB / 474.3 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003097/0.4171, allocations: 122.6 kB / 474.4 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.786e-05/0.4172, allocations: 63.55 kB / 474.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.4173, allocations: 3.984 kB / 474.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001519/0.4174, allocations: 117.9 kB / 474.6 MB, free: 15.04 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.342e-06/0.4174, allocations: 0 / 474.6 MB, free: 15.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.000582/0.418, allocations: 179.4 kB / 474.8 MB, free: 14.85 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.4181, allocations: 107 kB / 474.9 MB, free: 14.72 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002046/0.4183, allocations: 228.1 kB / 475.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.4183, allocations: 29.7 kB / 475.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.005e-05/0.4184, allocations: 179.5 kB / 475.3 MB, free: 14.28 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.695e-05/0.4185, allocations: 43.45 kB / 475.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.174e-05/0.4185, allocations: 3.938 kB / 475.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.4186, allocations: 330.8 kB / 475.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.887e-05/0.4187, allocations: 52.23 kB / 475.7 MB, free: 13.85 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.4188, allocations: 150 kB / 475.8 MB, free: 13.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001088/0.419, allocations: 63.95 kB / 475.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.419, allocations: 0 / 475.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006498/0.4196, allocations: 285.8 kB / 476.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.4196, allocations: 4.75 kB / 476.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.4197, allocations: 4 kB / 476.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001999/0.4199, allocations: 57.19 kB / 476.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002183/0.4201, allocations: 63.89 kB / 476.3 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001398/0.4215, allocations: 1.428 MB / 477.7 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003594/0.4219, allocations: 59.72 kB / 477.8 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.36e-05/0.4219, allocations: 12.06 kB / 477.8 MB, free: 11.56 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 9.94e-05/0.422, allocations: 120.4 kB / 477.9 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.51e-05/0.422, allocations: 20.84 kB / 478 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.455e-05/0.4221, allocations: 25.72 kB / 478 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.4221, allocations: 3.984 kB / 478 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.4221, allocations: 0 / 478 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4221, allocations: 0 / 478 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000213/0.4224, allocations: 254 kB / 478.2 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.4224, allocations: 0 / 478.2 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000139/0.4225, allocations: 35.91 kB / 478.3 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001299/0.4226, allocations: 48.84 kB / 478.3 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.4227, allocations: 5.547 kB / 478.3 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001347/0.424, allocations: 1.445 MB / 479.8 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.424, allocations: 0 / 479.8 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004954/0.4245, allocations: 209.2 kB / 480 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005737/0.4251, allocations: 0.5886 MB / 480.6 MB, free: 8.621 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.797e-05/0.4252, allocations: 112.8 kB / 480.7 MB, free: 8.492 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.194e-05/0.4253, allocations: 4 kB / 480.7 MB, free: 8.488 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000278/0.4256, allocations: 43.95 kB / 480.7 MB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.371e-05/0.4256, allocations: 15.97 kB / 480.7 MB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.29e-05/0.4257, allocations: 4 kB / 480.7 MB, free: 8.426 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000144/0.4258, allocations: 168.5 kB / 480.9 MB, free: 8.266 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009476/0.4268, allocations: 79.69 kB / 481 MB, free: 8.188 MB / 362.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 (7): * Single equations (assignments): 4 * 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.0001355/0.4269, allocations: 99.75 kB / 481.1 MB, free: 8.078 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005344/0.4275, allocations: 279.5 kB / 481.3 MB, free: 7.789 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4275, allocations: 0 / 481.3 MB, free: 7.789 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002603/0.4277, allocations: 153.8 kB / 481.5 MB, free: 7.629 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/0.428, allocations: 37.05 kB / 481.5 MB, free: 7.594 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006753/0.4287, allocations: 284.8 kB / 481.8 MB, free: 7.281 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003359/0.429, allocations: 0.7783 MB / 482.6 MB, free: 6.48 MB / 362.7 MB Notification: Performance of SimCode: time 3.3e-07/0.4291, allocations: 4 kB / 482.6 MB, free: 6.477 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat does not exist to compare? outputFormat=mat