Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",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.001196/0.001196, allocations: 182.8 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.116/1.116, allocations: 221.4 MB / 229.9 MB, free: 3.344 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.0009635/0.0009634, allocations: 102 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1039/0.1049, allocations: 55.81 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.3168, allocations: 50.39 MB / 387 MB, free: 38.14 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08843/0.4053, allocations: 82.25 MB / 469.2 MB, free: 4.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001841/0.4055, allocations: 67.97 kB / 469.3 MB, free: 4.504 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.04473/0.4503, allocations: 16.7 MB / 486 MB, free: 3.734 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.4503, allocations: 8 kB / 486 MB, free: 3.727 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00032/0.4507, allocations: 114.6 kB / 486.1 MB, free: 3.613 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009684/0.4516, allocations: 0.5472 MB / 486.7 MB, free: 3.023 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.147e-05/0.4517, allocations: 28 kB / 486.7 MB, free: 2.996 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001562/0.4519, allocations: 59.91 kB / 486.8 MB, free: 2.938 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001382/0.4533, allocations: 0.7381 MB / 487.5 MB, free: 2.199 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.4545, allocations: 0.6712 MB / 488.2 MB, free: 1.523 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.02e-05/0.4546, allocations: 4 kB / 488.2 MB, free: 1.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.06e-05/0.4546, allocations: 0 / 488.2 MB, free: 1.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.039e-05/0.4547, allocations: 20 kB / 488.2 MB, free: 1.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005564/0.4602, allocations: 3.156 MB / 491.4 MB, free: 14.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007116/0.461, allocations: 381 kB / 491.7 MB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005149/0.4615, allocations: 377.2 kB / 492.1 MB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.492e-05/0.4616, allocations: 24.64 kB / 492.1 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.4616, allocations: 39.22 kB / 492.2 MB, free: 13.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 2.164e-06/0.4616, allocations: 0 / 492.2 MB, free: 13.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.00713/0.4687, allocations: 2.463 MB / 494.6 MB, free: 10.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.4688, allocations: 56.06 kB / 494.7 MB, free: 10.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006058/0.4694, allocations: 454.3 kB / 495.1 MB, free: 10.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.794e-05/0.4695, allocations: 29.7 kB / 495.2 MB, free: 10.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000219/0.4697, allocations: 363.1 kB / 495.5 MB, free: 9.973 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001966/0.4699, allocations: 248.2 kB / 495.8 MB, free: 9.727 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.132e-05/0.47, allocations: 0 / 495.8 MB, free: 9.727 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001992/0.4702, allocations: 386.8 kB / 496.1 MB, free: 9.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004846/0.4706, allocations: 266.7 kB / 496.4 MB, free: 9.082 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005584/0.4712, allocations: 410.4 kB / 496.8 MB, free: 8.633 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001764/0.473, allocations: 0.5822 MB / 497.4 MB, free: 8.051 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.473, allocations: 0 / 497.4 MB, free: 8.051 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00298/0.476, allocations: 1.225 MB / 498.6 MB, free: 6.816 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.476, allocations: 8 kB / 498.6 MB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.626e-05/0.476, allocations: 4 kB / 498.6 MB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006051/0.4767, allocations: 177.3 kB / 498.8 MB, free: 6.633 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009478/0.4776, allocations: 211.8 kB / 499 MB, free: 6.426 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003498/0.4811, allocations: 2.453 MB / 0.4897 GB, free: 3.859 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000657/0.4818, allocations: 32.03 kB / 0.4897 GB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.778e-05/0.4819, allocations: 35.98 kB / 0.4898 GB, free: 3.793 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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 {(5,68.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001818/0.4821, allocations: 123.9 kB / 0.4899 GB, free: 3.668 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.4822, allocations: 71.16 kB / 0.4899 GB, free: 3.598 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001993/0.4825, allocations: 86.34 kB / 0.49 GB, free: 3.516 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.4825, allocations: 11.91 kB / 0.49 GB, free: 3.504 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/0.4825, allocations: 4 kB / 0.49 GB, free: 3.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.4825, allocations: 4.109 kB / 0.49 GB, free: 3.496 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/0.4836, allocations: 0.7603 MB / 0.4908 GB, free: 2.695 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.4836, allocations: 4 kB / 0.4908 GB, free: 2.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007964/0.4844, allocations: 159.8 kB / 0.4909 GB, free: 2.535 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005239/0.4849, allocations: 180.6 kB / 0.4911 GB, free: 2.355 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.566e-05/0.485, allocations: 15.97 kB / 0.4911 GB, free: 2.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1154/0.6004, allocations: 2.481 MB / 0.4936 GB, free: 131.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.6004, allocations: 0 / 0.4936 GB, free: 131.1 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003045/0.6035, allocations: 1.516 MB / 0.495 GB, free: 131 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003342/0.6068, allocations: 2.261 MB / 0.4972 GB, free: 130.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001683/0.607, allocations: 146.1 kB / 0.4974 GB, free: 130.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001447/0.6072, allocations: 3.062 kB / 0.4974 GB, free: 130.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006642/0.6079, allocations: 56.3 kB / 0.4974 GB, free: 130.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.608, allocations: 41.03 kB / 0.4975 GB, free: 130.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.085e-05/0.6081, allocations: 25.59 kB / 0.4975 GB, free: 130.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003703/0.6084, allocations: 339.1 kB / 0.4978 GB, free: 130.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001411/0.6098, allocations: 220.2 kB / 0.498 GB, free: 130.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * 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 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000274/0.6101, allocations: 128.2 kB / 0.4982 GB, free: 130.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001728/0.6119, allocations: 0.8703 MB / 0.499 GB, free: 130.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.6119, allocations: 0 / 0.499 GB, free: 130.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.6129, allocations: 0.5361 MB / 0.4995 GB, free: 130 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005478/0.6135, allocations: 88.41 kB / 0.4996 GB, free: 130 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002928/0.6164, allocations: 1.654 MB / 0.5012 GB, free: 129.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007196/0.6171, allocations: 1.096 MB / 0.5023 GB, free: 128.8 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.6171, allocations: 0 / 0.5023 GB, free: 128.8 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)