Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001145/0.001145, allocations: 203.9 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.148/1.148, allocations: 225.5 MB / 234.4 MB, free: 3.422 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008539/0.000854, allocations: 90.42 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0921/0.09298, allocations: 56.9 MB / 343.2 MB, free: 8.652 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08108/0.1741, allocations: 51.47 MB / 394.7 MB, free: 5.113 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2135/0.3876, allocations: 83.05 MB / 477.8 MB, free: 9.984 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001636/0.3878, allocations: 77.34 kB / 477.8 MB, free: 9.957 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.03981/0.4276, allocations: 16.81 MB / 494.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.4277, allocations: 8 kB / 494.7 MB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003309/0.428, allocations: 138.6 kB / 494.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007344/0.4288, allocations: 0.5465 MB / 495.3 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.789e-05/0.4288, allocations: 28 kB / 495.4 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.4289, allocations: 59.89 kB / 495.4 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001235/0.4302, allocations: 0.7361 MB / 496.2 MB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.4313, allocations: 0.6693 MB / 496.8 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.4314, allocations: 0 / 496.8 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.779e-05/0.4314, allocations: 0 / 496.8 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/0.4315, allocations: 28 kB / 496.9 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00515/0.4366, allocations: 3.146 MB / 0.4883 GB, free: 8.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006575/0.4373, allocations: 396.5 kB / 0.4887 GB, free: 7.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004871/0.4378, allocations: 380 kB / 0.489 GB, free: 7.551 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.379e-05/0.4379, allocations: 8.656 kB / 0.489 GB, free: 7.539 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.4379, allocations: 41.91 kB / 0.4891 GB, free: 7.496 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 1.724e-06/0.4379, allocations: 4 kB / 0.4891 GB, free: 7.492 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.006664/0.4446, allocations: 2.461 MB / 0.4915 GB, free: 5.484 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.692e-05/0.4446, allocations: 56.06 kB / 0.4915 GB, free: 5.418 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004981/0.4451, allocations: 454.4 kB / 0.492 GB, free: 5.078 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.324e-05/0.4452, allocations: 29.7 kB / 0.492 GB, free: 5.043 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.4454, allocations: 357.2 kB / 0.4923 GB, free: 4.727 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.4456, allocations: 253.5 kB / 0.4926 GB, free: 4.508 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.93e-05/0.4456, allocations: 3.938 kB / 0.4926 GB, free: 4.504 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.4458, allocations: 381.4 kB / 0.4929 GB, free: 4.152 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004765/0.4463, allocations: 271.4 kB / 0.4932 GB, free: 4.012 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005393/0.4468, allocations: 415.2 kB / 0.4936 GB, free: 3.664 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00186/0.4487, allocations: 0.5821 MB / 0.4942 GB, free: 3.082 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4487, allocations: 3.938 kB / 0.4942 GB, free: 3.078 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003126/0.4518, allocations: 1.221 MB / 0.4954 GB, free: 1.848 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.4519, allocations: 4 kB / 0.4954 GB, free: 1.844 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.4519, allocations: 4 kB / 0.4954 GB, free: 1.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005788/0.4525, allocations: 174.8 kB / 0.4955 GB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.4535, allocations: 211.7 kB / 0.4957 GB, free: 1.461 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003388/0.4569, allocations: 2.459 MB / 0.4981 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006951/0.4576, allocations: 27.98 kB / 0.4982 GB, free: 14.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.717e-05/0.4577, allocations: 31.98 kB / 0.4982 GB, free: 14.84 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.0001718/0.4579, allocations: 120.8 kB / 0.4983 GB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.458, allocations: 71.16 kB / 0.4984 GB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001885/0.4582, allocations: 88.77 kB / 0.4985 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.4582, allocations: 8 kB / 0.4985 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.4582, allocations: 4 kB / 0.4985 GB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.4582, allocations: 3.984 kB / 0.4985 GB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009642/0.4592, allocations: 0.7746 MB / 0.4992 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.4592, allocations: 128 / 0.4992 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008248/0.46, allocations: 163.8 kB / 0.4994 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005299/0.4606, allocations: 176.6 kB / 0.4996 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.138e-05/0.4606, allocations: 11.98 kB / 0.4996 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003366/0.464, allocations: 2.487 MB / 0.502 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.464, allocations: 0 / 0.502 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003335/0.4674, allocations: 1.517 MB / 0.5035 GB, free: 9.238 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003858/0.4713, allocations: 2.252 MB / 0.5057 GB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001578/0.4714, allocations: 147.1 kB / 0.5058 GB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/0.4716, allocations: 3.984 kB / 0.5058 GB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006694/0.4722, allocations: 59.88 kB / 0.5059 GB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.439e-05/0.4723, allocations: 40.58 kB / 0.5059 GB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.61e-05/0.4724, allocations: 27.98 kB / 0.506 GB, free: 6.676 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003898/0.4728, allocations: 342.9 kB / 0.5063 GB, free: 6.344 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001404/0.4742, allocations: 219.9 kB / 0.5065 GB, free: 6.129 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.0002441/0.4745, allocations: 134.1 kB / 0.5066 GB, free: 5.992 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001652/0.4761, allocations: 0.8711 MB / 0.5075 GB, free: 5.117 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4761, allocations: 0 / 0.5075 GB, free: 5.117 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.4773, allocations: 0.5321 MB / 0.508 GB, free: 4.574 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005254/0.4778, allocations: 103.5 kB / 0.5081 GB, free: 4.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003038/0.4809, allocations: 1.652 MB / 0.5097 GB, free: 2.793 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007775/0.4816, allocations: 1.085 MB / 0.5108 GB, free: 1.684 MB / 378.7 MB Notification: Performance of SimCode: time 6.91e-07/0.4817, allocations: 4 kB / 0.5108 GB, free: 1.68 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1e-08 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)