Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.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_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",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.002897/0.002897, allocations: 191.9 kB / 7.465 MB, free: 2.246 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.001/1.001, allocations: 194.2 MB / 202.1 MB, free: 8.715 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03346/0.03346, allocations: 7.931 MB / 254.9 MB, free: 1.715 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001784/0.001784, allocations: 133.1 kB / 301.5 MB, free: 3.305 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1003/0.1021, allocations: 52.3 MB / 353.8 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1868/0.2889, allocations: 46.2 MB / 400 MB, free: 70.27 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07463/0.3636, allocations: 73.87 MB / 473.9 MB, free: 13.49 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001612/0.3638, allocations: 51.92 kB / 474 MB, free: 13.44 MB / 330.7 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.0121/0.3759, allocations: 4.307 MB / 478.3 MB, free: 9.086 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.376, allocations: 9 kB / 478.3 MB, free: 9.078 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.914e-05/0.376, allocations: 31.84 kB / 478.3 MB, free: 9.047 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.3763, allocations: 239.1 kB / 478.5 MB, free: 8.773 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.3763, allocations: 8 kB / 478.5 MB, free: 8.766 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.028e-05/0.3764, allocations: 15.91 kB / 478.6 MB, free: 8.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002506/0.3766, allocations: 128.8 kB / 478.7 MB, free: 8.625 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002871/0.3769, allocations: 154.4 kB / 478.8 MB, free: 8.469 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.377, allocations: 4 kB / 478.8 MB, free: 8.465 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.155e-05/0.377, allocations: 3.984 kB / 478.8 MB, free: 8.461 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.377, allocations: 8 kB / 478.9 MB, free: 8.453 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.3782, allocations: 0.6619 MB / 479.5 MB, free: 7.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002663/0.3784, allocations: 109.7 kB / 479.6 MB, free: 7.637 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000139/0.3786, allocations: 80.89 kB / 479.7 MB, free: 7.555 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.3786, allocations: 3.938 kB / 479.7 MB, free: 7.551 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001869/0.3788, allocations: 132.9 kB / 479.8 MB, free: 7.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 2.054e-06/0.3788, allocations: 0 / 479.8 MB, free: 7.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.00143/0.3803, allocations: 0.8731 MB / 480.7 MB, free: 6.445 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.3803, allocations: 59.41 kB / 480.8 MB, free: 6.375 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001308/0.3804, allocations: 145.4 kB / 480.9 MB, free: 6.227 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.3805, allocations: 29.7 kB / 480.9 MB, free: 6.191 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.64e-05/0.3806, allocations: 120.5 kB / 481.1 MB, free: 6.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.481e-05/0.3806, allocations: 102.5 kB / 481.2 MB, free: 5.969 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.157e-05/0.3807, allocations: 0 / 481.2 MB, free: 5.969 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.3808, allocations: 334.8 kB / 481.5 MB, free: 5.633 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.3809, allocations: 64.33 kB / 481.5 MB, free: 5.566 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.381, allocations: 99.44 kB / 481.6 MB, free: 5.461 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001346/0.3812, allocations: 73.03 kB / 481.7 MB, free: 5.391 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.3812, allocations: 0 / 481.7 MB, free: 5.391 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003516/0.3815, allocations: 240.9 kB / 481.9 MB, free: 5.148 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.3816, allocations: 8 kB / 482 MB, free: 5.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.3816, allocations: 0 / 482 MB, free: 5.141 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.3816, allocations: 3.938 kB / 482 MB, free: 5.137 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003301/0.3819, allocations: 83.95 kB / 482 MB, free: 5.055 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.382, allocations: 15.83 kB / 482.1 MB, free: 5.039 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002289/0.3822, allocations: 31.97 kB / 482.1 MB, free: 5.008 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.3822, allocations: 8 kB / 482.1 MB, free: 5 MB / 330.7 MB Warning: Assuming fixed start value for the following 4 variables: speedSensor.w:DISCRETE(fixed = false ) "Sensed speed" 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: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.speedSensor.w,speedSensor.w,$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 (39): * Single equations (assignments): 38 * 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.0001954/0.3824, allocations: 139.4 kB / 482.2 MB, free: 4.859 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.517e-05/0.3825, allocations: 27.7 kB / 482.3 MB, free: 4.832 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.117e-05/0.3825, allocations: 22.66 kB / 482.3 MB, free: 4.809 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.3825, allocations: 4 kB / 482.3 MB, free: 4.805 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3826, allocations: 0 / 482.3 MB, free: 4.805 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-06/0.3826, allocations: 3.984 kB / 482.3 MB, free: 4.801 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008493/0.3834, allocations: 0.6606 MB / 483 MB, free: 4.082 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3834, allocations: 0 / 483 MB, free: 4.082 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003487/0.3838, allocations: 76.02 kB / 483 MB, free: 4.008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.3838, allocations: 0 / 483 MB, free: 4.008 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.137e-05/0.3838, allocations: 8 kB / 483 MB, free: 4 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.3838, allocations: 3.938 kB / 483 MB, free: 3.996 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.3838, allocations: 3.984 kB / 483 MB, free: 3.992 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004967/0.3843, allocations: 442 kB / 483.5 MB, free: 3.527 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000696/0.3851, allocations: 0.9003 MB / 484.4 MB, free: 2.59 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.78e-05/0.3851, allocations: 100.8 kB / 484.5 MB, free: 2.473 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.82e-05/0.3852, allocations: 4 kB / 484.5 MB, free: 2.469 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002459/0.3854, allocations: 27.97 kB / 484.5 MB, free: 2.441 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.227e-05/0.3855, allocations: 31.86 kB / 484.5 MB, free: 2.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.862e-05/0.3855, allocations: 12 kB / 484.5 MB, free: 2.398 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.157e-05/0.3856, allocations: 115.3 kB / 484.7 MB, free: 2.285 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008283/0.3864, allocations: 56 kB / 484.7 MB, free: 2.23 MB / 330.7 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: 5 ($whenCondition2,$whenCondition1,speedSensor.w,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001523/0.3866, allocations: 111.2 kB / 484.8 MB, free: 2.113 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003686/0.387, allocations: 209.4 kB / 485 MB, free: 1.902 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.387, allocations: 0 / 485 MB, free: 1.902 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001611/0.3872, allocations: 111.9 kB / 485.1 MB, free: 1.793 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003183/0.3875, allocations: 28.23 kB / 485.2 MB, free: 1.766 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.3886, allocations: 0.5907 MB / 485.8 MB, free: 1.145 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00036/0.389, allocations: 0.7904 MB / 486.5 MB, free: 336 kB / 330.7 MB Notification: Performance of SimCode: time 2.31e-07/0.389, allocations: 0 / 486.5 MB, free: 336 kB / 330.7 MB (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1)