Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.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.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",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.0009461/0.000946, allocations: 183.4 kB / 8.135 MB, free: 2.223 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.164/1.164, allocations: 221.4 MB / 229.9 MB, free: 3.066 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.0009119/0.0009119, allocations: 105.5 kB / 280.8 MB, free: 1.219 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1012/0.1022, allocations: 55.82 MB / 336.6 MB, free: 9.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2123/0.3145, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0878/0.4024, allocations: 80.08 MB / 467.1 MB, free: 6.688 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000215/0.4026, allocations: 67.91 kB / 467.1 MB, free: 6.621 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.02507/0.4277, allocations: 8.981 MB / 476.1 MB, free: 13.61 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.4278, allocations: 8 kB / 476.1 MB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.4279, allocations: 47.44 kB / 476.2 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004317/0.4283, allocations: 293.8 kB / 476.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.4284, allocations: 12 kB / 476.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.724e-05/0.4284, allocations: 20 kB / 476.5 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003919/0.4288, allocations: 197.2 kB / 476.7 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004808/0.4293, allocations: 279.8 kB / 477 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.4293, allocations: 0 / 477 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.036e-05/0.4294, allocations: 11.84 kB / 477 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.4294, allocations: 8 kB / 477 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/0.4312, allocations: 1.108 MB / 478.1 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003883/0.4316, allocations: 215.6 kB / 478.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003666/0.432, allocations: 193.3 kB / 478.5 MB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006758/0.4327, allocations: 1.125 MB / 479.6 MB, free: 9.719 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.4327, allocations: 38.7 kB / 479.7 MB, free: 9.672 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.683e-06/0.4327, allocations: 0 / 479.7 MB, free: 9.672 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.0005871/0.4333, allocations: 268.8 kB / 479.9 MB, free: 9.402 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.4333, allocations: 81.11 kB / 480 MB, free: 9.305 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/0.4336, allocations: 247.5 kB / 480.2 MB, free: 9.059 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.4336, allocations: 27.67 kB / 480.3 MB, free: 9.027 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.084e-05/0.4337, allocations: 187.9 kB / 480.5 MB, free: 8.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.4338, allocations: 98.55 kB / 480.5 MB, free: 8.742 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.487e-05/0.4339, allocations: 0 / 480.5 MB, free: 8.742 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.434, allocations: 342.8 kB / 480.9 MB, free: 8.398 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.4341, allocations: 80.75 kB / 481 MB, free: 8.316 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.4343, allocations: 157.7 kB / 481.1 MB, free: 8.133 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001936/0.4345, allocations: 106.5 kB / 481.2 MB, free: 8.031 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.4345, allocations: 0 / 481.2 MB, free: 8.031 MB / 362.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006274/0.4352, allocations: 357.8 kB / 481.6 MB, free: 7.672 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.4352, allocations: 7.938 kB / 481.6 MB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.4352, allocations: 4 kB / 481.6 MB, free: 7.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002367/0.4354, allocations: 64.77 kB / 481.6 MB, free: 7.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003299/0.4358, allocations: 79.89 kB / 481.7 MB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001528/0.4373, allocations: 1.671 MB / 483.4 MB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002484/0.4376, allocations: 43.64 kB / 483.4 MB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.664e-05/0.4376, allocations: 12 kB / 483.4 MB, free: 5.676 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.082e-05/0.4377, allocations: 114.1 kB / 483.6 MB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.197e-05/0.4378, allocations: 35.62 kB / 483.6 MB, free: 5.523 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005223/0.4383, allocations: 296.2 kB / 483.9 MB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.4383, allocations: 4 kB / 483.9 MB, free: 5.227 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.4383, allocations: 3.938 kB / 483.9 MB, free: 5.223 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.4384, allocations: 0 / 483.9 MB, free: 5.223 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003358/0.4387, allocations: 341.7 kB / 484.2 MB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.4387, allocations: 0 / 484.2 MB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003527/0.4391, allocations: 59.97 kB / 484.3 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00017/0.4392, allocations: 56.8 kB / 484.3 MB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.326e-05/0.4393, allocations: 11.98 kB / 484.4 MB, free: 4.723 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000391/0.4397, allocations: 0.6108 MB / 485 MB, free: 4.086 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4397, allocations: 0 / 485 MB, free: 4.086 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006376/0.4403, allocations: 468.4 kB / 485.4 MB, free: 3.605 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008386/0.4412, allocations: 0.9314 MB / 486.3 MB, free: 2.652 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.894e-05/0.4413, allocations: 108.7 kB / 486.5 MB, free: 2.527 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.588e-05/0.4413, allocations: 7.906 kB / 486.5 MB, free: 2.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002831/0.4416, allocations: 23.98 kB / 486.5 MB, free: 2.496 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.554e-05/0.4417, allocations: 15.97 kB / 486.5 MB, free: 2.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.223e-05/0.4417, allocations: 8 kB / 486.5 MB, free: 2.473 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001734/0.4419, allocations: 199 kB / 486.7 MB, free: 2.277 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009744/0.4429, allocations: 103.7 kB / 486.8 MB, free: 2.176 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (opAmp.v_in,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_fp1,opAmp.v_source,opAmp.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * 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 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002048/0.4431, allocations: 131.2 kB / 486.9 MB, free: 2.039 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000554/0.4436, allocations: 349.8 kB / 487.3 MB, free: 1.688 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4436, allocations: 0 / 487.3 MB, free: 1.688 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002348/0.4439, allocations: 115.9 kB / 487.4 MB, free: 1.574 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002232/0.4441, allocations: 28.06 kB / 487.4 MB, free: 1.551 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.4452, allocations: 0.6529 MB / 488.1 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004325/0.4456, allocations: 0.847 MB / 488.9 MB, free: 15.99 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4456, allocations: 0 / 488.9 MB, free: 15.99 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed_fmu --startTime=0 --stopTime=0.003 --timeout=50 --tolerance=2e-07 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1)