Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.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.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009432/0.0009432, allocations: 179.5 kB / 8.477 MB, free: 1.883 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.111/1.111, allocations: 205.2 MB / 214.1 MB, free: 1.887 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.0008758/0.0008757, allocations: 87.38 kB / 262.1 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1516/0.1525, allocations: 52.97 MB / 315.1 MB, free: 22.95 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07401/0.2265, allocations: 47.58 MB / 362.6 MB, free: 7.297 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.23/0.4566, allocations: 78.62 MB / 441.3 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/0.4569, allocations: 71.02 kB / 441.3 MB, free: 0.8164 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.02327/0.4801, allocations: 8.678 MB / 450 MB, free: 9.477 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/0.4802, allocations: 8 kB / 450 MB, free: 9.469 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.4803, allocations: 55.31 kB / 450.1 MB, free: 9.418 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004142/0.4807, allocations: 294 kB / 450.4 MB, free: 9.121 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.4808, allocations: 16 kB / 450.4 MB, free: 9.105 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.402e-05/0.4809, allocations: 20 kB / 450.4 MB, free: 9.086 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003541/0.4812, allocations: 192.3 kB / 450.6 MB, free: 8.969 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004338/0.4817, allocations: 276.7 kB / 450.9 MB, free: 8.758 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.4817, allocations: 3.906 kB / 450.9 MB, free: 8.754 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.054e-05/0.4817, allocations: 4 kB / 450.9 MB, free: 8.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.4817, allocations: 4 kB / 450.9 MB, free: 8.746 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.4836, allocations: 1.12 MB / 452 MB, free: 7.785 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003738/0.484, allocations: 211.2 kB / 452.2 MB, free: 7.633 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000358/0.4843, allocations: 194.2 kB / 452.4 MB, free: 7.484 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007323/0.4851, allocations: 1.129 MB / 453.5 MB, free: 6.098 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.4851, allocations: 42.02 kB / 453.6 MB, free: 6.051 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 2.114e-06/0.4851, allocations: 3.938 kB / 453.6 MB, free: 6.047 MB / 330.7 MB Notification: Performance of matching and sorting (n=27): time 0.0005731/0.4857, allocations: 259.4 kB / 453.8 MB, free: 5.844 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.4857, allocations: 84.48 kB / 453.9 MB, free: 5.746 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002361/0.486, allocations: 244.5 kB / 454.1 MB, free: 5.547 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.486, allocations: 29.7 kB / 454.2 MB, free: 5.512 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.242e-05/0.4861, allocations: 190.7 kB / 454.3 MB, free: 5.34 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.033e-05/0.4862, allocations: 99.88 kB / 454.4 MB, free: 5.254 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.458e-05/0.4862, allocations: 0 / 454.4 MB, free: 5.254 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4863, allocations: 337.7 kB / 454.8 MB, free: 4.926 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.4865, allocations: 84.94 kB / 454.9 MB, free: 4.875 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.4866, allocations: 161.6 kB / 455 MB, free: 4.727 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001942/0.4868, allocations: 101.4 kB / 455.1 MB, free: 4.664 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4869, allocations: 0 / 455.1 MB, free: 4.664 MB / 330.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006122/0.4875, allocations: 363 kB / 455.5 MB, free: 4.379 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.4875, allocations: 7.984 kB / 455.5 MB, free: 4.371 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.4875, allocations: 4.25 kB / 455.5 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002561/0.4878, allocations: 62.83 kB / 455.5 MB, free: 4.312 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003374/0.4881, allocations: 79.27 kB / 455.6 MB, free: 4.238 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001566/0.4897, allocations: 1.672 MB / 457.3 MB, free: 2.629 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002648/0.49, allocations: 31.69 kB / 457.3 MB, free: 2.598 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.691e-05/0.49, allocations: 11.58 kB / 457.3 MB, free: 2.59 MB / 330.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 0.0001133/0.4901, allocations: 121.9 kB / 457.5 MB, free: 2.465 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.643e-05/0.4902, allocations: 31.62 kB / 457.5 MB, free: 2.434 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005421/0.4908, allocations: 296.9 kB / 457.8 MB, free: 2.207 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.4908, allocations: 4 kB / 457.8 MB, free: 2.203 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.4908, allocations: 0 / 457.8 MB, free: 2.203 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.4908, allocations: 7.984 kB / 457.8 MB, free: 2.195 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000414/0.4912, allocations: 340.8 kB / 458.1 MB, free: 1.891 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.4912, allocations: 0 / 458.1 MB, free: 1.891 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000366/0.4916, allocations: 63.89 kB / 458.2 MB, free: 1.828 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001853/0.4918, allocations: 61.58 kB / 458.2 MB, free: 1.777 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.248e-05/0.4918, allocations: 7.984 kB / 458.2 MB, free: 1.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003861/0.4922, allocations: 0.607 MB / 458.9 MB, free: 1.176 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4922, allocations: 0 / 458.9 MB, free: 1.176 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000649/0.4929, allocations: 473.5 kB / 459.3 MB, free: 0.7969 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008567/0.4938, allocations: 0.9423 MB / 460.3 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.456e-05/0.4939, allocations: 108.1 kB / 460.4 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.814e-05/0.4939, allocations: 11.84 kB / 460.4 MB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002791/0.4942, allocations: 19.98 kB / 460.4 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.006e-05/0.4943, allocations: 7.984 kB / 460.4 MB, free: 15.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.64e-05/0.4943, allocations: 19.36 kB / 460.4 MB, free: 15.81 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001652/0.4945, allocations: 187.9 kB / 460.6 MB, free: 15.66 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001/0.4955, allocations: 110.9 kB / 460.7 MB, free: 15.56 MB / 346.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.0002174/0.4957, allocations: 127.2 kB / 460.8 MB, free: 15.42 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005658/0.4963, allocations: 335.5 kB / 461.2 MB, free: 15.16 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4963, allocations: 8.062 kB / 461.2 MB, free: 15.15 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002346/0.4965, allocations: 118.1 kB / 461.3 MB, free: 15.07 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002537/0.4968, allocations: 19.33 kB / 461.3 MB, free: 15.05 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.4979, allocations: 0.6516 MB / 462 MB, free: 14.43 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004665/0.4984, allocations: 0.8464 MB / 462.8 MB, free: 13.56 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4984, allocations: 3.938 kB / 462.8 MB, free: 13.55 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed_fmu --startTime=0 --stopTime=0.003 --timeout=50 --tolerance=2e-07 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1)