Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001437/0.001437, allocations: 179.6 kB / 8.48 MB, free: 1.867 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.119/1.119, allocations: 205.2 MB / 214.1 MB, free: 5.16 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.0008534/0.0008534, allocations: 91.31 kB / 262.1 MB, free: 5.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1633/0.1642, allocations: 52.96 MB / 315.1 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06853/0.2327, allocations: 47.58 MB / 362.6 MB, free: 9.887 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2052/0.438, allocations: 79.32 MB / 442 MB, free: 10.65 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00017/0.4382, allocations: 70.12 kB / 442 MB, free: 10.65 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.03533/0.4735, allocations: 15.12 MB / 457.2 MB, free: 6.031 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.4736, allocations: 7.531 kB / 457.2 MB, free: 6.031 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002888/0.4739, allocations: 106 kB / 457.3 MB, free: 5.977 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007242/0.4746, allocations: 496.8 kB / 457.8 MB, free: 5.641 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.63e-05/0.4747, allocations: 29.25 kB / 457.8 MB, free: 5.637 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001566/0.4748, allocations: 50.84 kB / 457.8 MB, free: 5.637 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001294/0.4761, allocations: 0.6671 MB / 458.5 MB, free: 5.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.4774, allocations: 0.7113 MB / 459.2 MB, free: 5.398 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.4774, allocations: 0 / 459.2 MB, free: 5.398 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.226e-05/0.4775, allocations: 5.328 kB / 459.2 MB, free: 5.395 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.946e-05/0.4775, allocations: 27.48 kB / 459.2 MB, free: 5.387 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004617/0.4821, allocations: 2.971 MB / 462.2 MB, free: 3.906 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006188/0.4827, allocations: 367.8 kB / 462.6 MB, free: 3.871 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000564/0.4833, allocations: 349.2 kB / 462.9 MB, free: 3.855 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.384e-05/0.4834, allocations: 12.2 kB / 462.9 MB, free: 3.855 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.4834, allocations: 41.56 kB / 463 MB, free: 3.816 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 2.474e-06/0.4834, allocations: 4.531 kB / 463 MB, free: 3.812 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.005428/0.4889, allocations: 2.218 MB / 465.2 MB, free: 3.008 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.005e-05/0.4889, allocations: 74.7 kB / 465.3 MB, free: 2.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004192/0.4893, allocations: 389.5 kB / 465.6 MB, free: 2.793 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.135e-05/0.4894, allocations: 27.58 kB / 465.7 MB, free: 2.762 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.4895, allocations: 332.5 kB / 466 MB, free: 2.504 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.4896, allocations: 239.1 kB / 466.2 MB, free: 2.324 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.106e-05/0.4897, allocations: 1.156 kB / 466.2 MB, free: 2.324 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.021e-05/0.4898, allocations: 379.5 kB / 466.6 MB, free: 1.984 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004167/0.4902, allocations: 255.4 kB / 466.8 MB, free: 1.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004577/0.4907, allocations: 371.1 kB / 467.2 MB, free: 1.859 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.4919, allocations: 486.8 kB / 467.7 MB, free: 1.758 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.492, allocations: 1.25 kB / 467.7 MB, free: 1.758 MB / 314.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002412/0.4944, allocations: 1.068 MB / 468.8 MB, free: 1.504 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.4944, allocations: 4.906 kB / 468.8 MB, free: 1.504 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.4944, allocations: 2.875 kB / 468.8 MB, free: 1.504 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005485/0.495, allocations: 177.1 kB / 468.9 MB, free: 1.457 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008511/0.4958, allocations: 198.5 kB / 469.1 MB, free: 1.414 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003367/0.4992, allocations: 2.48 MB / 471.6 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006177/0.4998, allocations: 30.66 kB / 471.6 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.806e-05/0.4999, allocations: 26.72 kB / 471.7 MB, free: 15.9 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001777/0.5001, allocations: 123 kB / 471.8 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001528/0.5003, allocations: 70.22 kB / 471.9 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001789/0.5005, allocations: 73.09 kB / 471.9 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.964e-06/0.5005, allocations: 6.906 kB / 471.9 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.715e-05/0.5005, allocations: 7.391 kB / 471.9 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.5005, allocations: 0 / 471.9 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.5016, allocations: 0.7384 MB / 472.7 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.5016, allocations: 0 / 472.7 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007839/0.5024, allocations: 155.6 kB / 472.8 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005394/0.5029, allocations: 173.4 kB / 473 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.202e-05/0.503, allocations: 24.09 kB / 473 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003419/0.5064, allocations: 2.462 MB / 475.5 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.5064, allocations: 13.34 kB / 475.5 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002961/0.5094, allocations: 1.403 MB / 476.9 MB, free: 13.43 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003441/0.5129, allocations: 2.158 MB / 479.1 MB, free: 11.92 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001939/0.5131, allocations: 133.1 kB / 479.2 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.5132, allocations: 5.75 kB / 479.2 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006505/0.5139, allocations: 52.7 kB / 479.2 MB, free: 11.72 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.514, allocations: 42.14 kB / 479.3 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.551e-05/0.5141, allocations: 28.92 kB / 479.3 MB, free: 11.66 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003798/0.5145, allocations: 301.8 kB / 479.6 MB, free: 11.44 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001433/0.5159, allocations: 203.5 kB / 479.8 MB, free: 11.25 MB / 330.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.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * 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,68.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002576/0.5162, allocations: 126.1 kB / 479.9 MB, free: 11.11 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.5179, allocations: 0.8513 MB / 480.8 MB, free: 10.47 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.5179, allocations: 4 kB / 480.8 MB, free: 10.47 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.5191, allocations: 0.5356 MB / 481.3 MB, free: 9.926 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005032/0.5196, allocations: 94.3 kB / 481.4 MB, free: 9.832 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003003/0.5226, allocations: 1.584 MB / 483 MB, free: 8.223 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007917/0.5234, allocations: 1.066 MB / 484.1 MB, free: 7.129 MB / 330.7 MB Notification: Performance of SimCode: time 8.22e-07/0.5234, allocations: 0 / 484.1 MB, free: 7.129 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)