Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",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.2+maint.om/package.mo): time 0.001344/0.001344, allocations: 185.8 kB / 7.462 MB, free: 1.523 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.003/1.003, allocations: 194.2 MB / 202.1 MB, free: 14.33 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03405/0.03405, allocations: 7.917 MB / 254.9 MB, free: 8.762 MB / 210.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001601/0.001601, allocations: 121.2 kB / 301.5 MB, free: 9.996 MB / 258.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1679/0.1695, allocations: 52.31 MB / 353.8 MB, free: 82.05 MB / 290.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06621/0.2357, allocations: 46.2 MB / 400 MB, free: 38.73 MB / 290.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2045/0.4403, allocations: 73.88 MB / 473.9 MB, free: 18.22 MB / 322.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001582/0.4405, allocations: 46.52 kB / 474 MB, free: 18.22 MB / 322.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.01004/0.4506, allocations: 4.236 MB / 478.2 MB, free: 17.55 MB / 322.8 MB Notification: Performance of prepare preOptimizeDAE: time 2.847e-05/0.4506, allocations: 7.688 kB / 478.2 MB, free: 17.55 MB / 322.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.574e-05/0.4507, allocations: 33.28 kB / 478.2 MB, free: 17.54 MB / 322.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001915/0.4509, allocations: 237 kB / 478.5 MB, free: 17.32 MB / 322.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.4509, allocations: 7.625 kB / 478.5 MB, free: 17.32 MB / 322.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.465e-05/0.4509, allocations: 11.34 kB / 478.5 MB, free: 17.32 MB / 322.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002058/0.4511, allocations: 127.7 kB / 478.6 MB, free: 17.31 MB / 322.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000221/0.4514, allocations: 162.5 kB / 478.8 MB, free: 17.27 MB / 322.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.4514, allocations: 3.234 kB / 478.8 MB, free: 17.27 MB / 322.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.4514, allocations: 0 / 478.8 MB, free: 17.27 MB / 322.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.4514, allocations: 7.875 kB / 478.8 MB, free: 17.27 MB / 322.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009049/0.4523, allocations: 0.7146 MB / 479.5 MB, free: 16.92 MB / 322.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000207/0.4526, allocations: 106.8 kB / 479.6 MB, free: 16.9 MB / 322.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.4527, allocations: 81.14 kB / 479.7 MB, free: 16.89 MB / 322.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.4527, allocations: 7.656 kB / 479.7 MB, free: 16.89 MB / 322.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001328/0.4528, allocations: 119.2 kB / 479.8 MB, free: 16.84 MB / 322.8 MB Notification: Performance of pre-optimization done (n=25): time 1.393e-06/0.4528, allocations: 0 / 479.8 MB, free: 16.84 MB / 322.8 MB Notification: Performance of matching and sorting (n=29): time 0.0009515/0.4538, allocations: 0.8064 MB / 480.6 MB, free: 16.34 MB / 322.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.104e-05/0.4538, allocations: 63.41 kB / 480.7 MB, free: 16.27 MB / 322.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.198e-05/0.4539, allocations: 140.2 kB / 480.8 MB, free: 16.18 MB / 322.8 MB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.4539, allocations: 33.27 kB / 480.8 MB, free: 16.14 MB / 322.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.122e-05/0.454, allocations: 124.4 kB / 481 MB, free: 16.04 MB / 322.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.399e-05/0.454, allocations: 98.52 kB / 481.1 MB, free: 15.98 MB / 322.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.022e-05/0.4541, allocations: 0 / 481.1 MB, free: 15.98 MB / 322.8 MB Notification: Performance of setup shared object (initialization): time 4.309e-05/0.4541, allocations: 332 kB / 481.4 MB, free: 15.66 MB / 322.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.679e-05/0.4542, allocations: 57.81 kB / 481.4 MB, free: 15.66 MB / 322.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.479e-05/0.4543, allocations: 84.14 kB / 481.5 MB, free: 15.64 MB / 322.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.744e-05/0.4544, allocations: 65.28 kB / 481.6 MB, free: 15.64 MB / 322.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.4544, allocations: 3.938 kB / 481.6 MB, free: 15.64 MB / 322.8 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002876/0.4547, allocations: 218.7 kB / 481.8 MB, free: 15.59 MB / 322.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/0.4547, allocations: 7.344 kB / 481.8 MB, free: 15.59 MB / 322.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.4547, allocations: 3.875 kB / 481.8 MB, free: 15.59 MB / 322.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.4548, allocations: 0 / 481.8 MB, free: 15.59 MB / 322.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002928/0.455, allocations: 83.22 kB / 481.9 MB, free: 15.57 MB / 322.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.4551, allocations: 7.391 kB / 481.9 MB, free: 15.57 MB / 322.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002069/0.4553, allocations: 33.41 kB / 481.9 MB, free: 15.57 MB / 322.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.754e-05/0.4553, allocations: 7.656 kB / 482 MB, free: 15.57 MB / 322.8 MB Warning: Assuming fixed start value for the following 4 variables: damper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real damper.phi_rel:VARIABLE(start = 0.0 unit = "rad" nominal = if damper.phi_nominal >= 1e-15 then damper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) "Relative rotation angle (= flange_b.phi - flange_a.phi)" type: Real springDamper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real springDamper.phi_rel:VARIABLE(start = 0.0 unit = "rad" nominal = if springDamper.phi_nominal >= 1e-15 then springDamper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) "Relative rotation angle (= flange_b.phi - flange_a.phi)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001352/0.4554, allocations: 124.8 kB / 482.1 MB, free: 15.45 MB / 322.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.477e-05/0.4555, allocations: 22.84 kB / 482.1 MB, free: 15.44 MB / 322.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.622e-05/0.4555, allocations: 24.69 kB / 482.1 MB, free: 15.44 MB / 322.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.4555, allocations: 3.781 kB / 482.1 MB, free: 15.44 MB / 322.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4555, allocations: 0 / 482.1 MB, free: 15.44 MB / 322.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.4555, allocations: 3.984 kB / 482.1 MB, free: 15.43 MB / 322.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005516/0.4561, allocations: 0.5872 MB / 482.7 MB, free: 15.13 MB / 322.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.4561, allocations: 0 / 482.7 MB, free: 15.13 MB / 322.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003146/0.4564, allocations: 83.34 kB / 482.8 MB, free: 15.12 MB / 322.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.4564, allocations: 3.875 kB / 482.8 MB, free: 15.12 MB / 322.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.4565, allocations: 3.875 kB / 482.8 MB, free: 15.12 MB / 322.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.4565, allocations: 7.188 kB / 482.8 MB, free: 15.12 MB / 322.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.4565, allocations: 0 / 482.8 MB, free: 15.12 MB / 322.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000369/0.4569, allocations: 430 kB / 483.2 MB, free: 14.91 MB / 322.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004806/0.4573, allocations: 0.8591 MB / 484.1 MB, free: 14.34 MB / 322.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.985e-05/0.4574, allocations: 95.12 kB / 484.2 MB, free: 14.23 MB / 322.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.611e-05/0.4574, allocations: 7.656 kB / 484.2 MB, free: 14.23 MB / 322.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.4577, allocations: 34.25 kB / 484.2 MB, free: 14.22 MB / 322.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.625e-05/0.4577, allocations: 22.53 kB / 484.2 MB, free: 14.22 MB / 322.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.4578, allocations: 7.75 kB / 484.3 MB, free: 14.22 MB / 322.8 MB Notification: Performance of sort global known variables: time 4.92e-05/0.4578, allocations: 120.6 kB / 484.4 MB, free: 14.14 MB / 322.8 MB Notification: Performance of remove unused functions: time 0.0008002/0.4586, allocations: 53 kB / 484.4 MB, free: 14.14 MB / 322.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (springDamper.phi_rel,springDamper.w_rel,damper.phi_rel,damper.w_rel) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001017/0.4587, allocations: 102.7 kB / 484.5 MB, free: 14.05 MB / 322.8 MB Notification: Performance of simCode: created initialization part: time 0.00025/0.459, allocations: 198.7 kB / 484.7 MB, free: 14.02 MB / 322.8 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.459, allocations: 0 / 484.7 MB, free: 14.02 MB / 322.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.4591, allocations: 101.7 kB / 484.8 MB, free: 14.01 MB / 322.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.4594, allocations: 39.16 kB / 484.9 MB, free: 14 MB / 322.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008778/0.4603, allocations: 0.5705 MB / 485.4 MB, free: 13.66 MB / 322.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002169/0.4605, allocations: 0.7918 MB / 486.2 MB, free: 12.95 MB / 322.8 MB Notification: Performance of SimCode: time 2.3e-07/0.4605, allocations: 0 / 486.2 MB, free: 12.95 MB / 322.8 MB (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1)