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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001884/0.001884, allocations: 184.1 kB / 7.654 MB, free: 1.418 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.748/1.748, allocations: 194.3 MB / 202.4 MB, free: 13.03 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03756/0.03756, allocations: 7.907 MB / 255.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001707/0.001707, allocations: 122.4 kB / 301.9 MB, free: 32.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.734e-05/1.718e-05, allocations: 0 / 354.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2669, allocations: 46.18 MB / 400.6 MB, free: 46.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09786/0.3648, allocations: 73.95 MB / 474.5 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001754/0.365, allocations: 47.98 kB / 474.6 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01133/0.3764, allocations: 3.968 MB / 478.5 MB, free: 12.94 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3764, allocations: 1.125 kB / 478.5 MB, free: 12.94 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.92e-05/0.3764, allocations: 4 kB / 478.5 MB, free: 12.93 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.0008483/0.3773, allocations: 0.5289 MB / 479.1 MB, free: 12.36 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.3773, allocations: 12.03 kB / 479.1 MB, free: 12.35 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.792e-05/0.3774, allocations: 32.69 kB / 479.1 MB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003071/0.3778, allocations: 239.3 kB / 479.3 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.219e-05/0.3778, allocations: 8 kB / 479.4 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.747e-05/0.3778, allocations: 16 kB / 479.4 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002667/0.3781, allocations: 124.8 kB / 479.5 MB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002856/0.3784, allocations: 154.4 kB / 479.6 MB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.3784, allocations: 7.938 kB / 479.7 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.029e-05/0.3785, allocations: 0 / 479.7 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.3785, allocations: 4.562 kB / 479.7 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001191/0.3797, allocations: 0.7125 MB / 480.4 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003397/0.38, allocations: 170.7 kB / 480.5 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.3802, allocations: 80.84 kB / 480.6 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.3802, allocations: 8 kB / 480.6 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002327/0.3804, allocations: 127.5 kB / 480.7 MB, free: 10.57 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 2.034e-06/0.3805, allocations: 0 / 480.7 MB, free: 10.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.001228/0.3817, allocations: 0.8286 MB / 481.6 MB, free: 9.656 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.508e-05/0.3817, allocations: 55.41 kB / 481.6 MB, free: 9.59 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.3819, allocations: 141.5 kB / 481.8 MB, free: 9.445 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.3819, allocations: 29.7 kB / 481.8 MB, free: 9.41 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.704e-05/0.382, allocations: 140.4 kB / 481.9 MB, free: 9.27 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.703e-05/0.3821, allocations: 94.56 kB / 482 MB, free: 9.176 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.12e-05/0.3821, allocations: 0 / 482 MB, free: 9.176 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.3822, allocations: 330.8 kB / 482.3 MB, free: 8.844 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.3823, allocations: 62.38 kB / 482.4 MB, free: 8.785 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.3824, allocations: 85.64 kB / 482.5 MB, free: 8.695 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001247/0.3826, allocations: 64.53 kB / 482.6 MB, free: 8.629 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.3826, allocations: 0 / 482.6 MB, free: 8.629 MB / 330.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003636/0.383, allocations: 222.8 kB / 482.8 MB, free: 8.406 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.674e-05/0.383, allocations: 42.11 kB / 482.8 MB, free: 8.363 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.383, allocations: 0 / 482.8 MB, free: 8.363 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.3831, allocations: 3.953 kB / 482.8 MB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003451/0.3834, allocations: 83.92 kB / 482.9 MB, free: 8.277 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.3834, allocations: 5.938 kB / 482.9 MB, free: 8.273 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.3837, allocations: 19.98 kB / 482.9 MB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.523e-05/0.3837, allocations: 12 kB / 482.9 MB, free: 8.242 MB / 330.7 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.0001794/0.3839, allocations: 142 kB / 483.1 MB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002762/0.3842, allocations: 194.7 kB / 483.3 MB, free: 7.906 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.951e-05/0.3842, allocations: 19.77 kB / 483.3 MB, free: 7.887 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.926e-05/0.3843, allocations: 23.41 kB / 483.3 MB, free: 7.863 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.3843, allocations: 4 kB / 483.3 MB, free: 7.859 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3843, allocations: 4 kB / 483.3 MB, free: 7.855 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.3843, allocations: 6.047 kB / 483.3 MB, free: 7.852 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007092/0.385, allocations: 0.5847 MB / 483.9 MB, free: 7.219 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.385, allocations: 8 kB / 483.9 MB, free: 7.211 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003225/0.3854, allocations: 67.95 kB / 484 MB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.3854, allocations: 0 / 484 MB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.3854, allocations: 8 kB / 484 MB, free: 7.137 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.3854, allocations: 0 / 484 MB, free: 7.137 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.787e-06/0.3854, allocations: 6.75 kB / 484 MB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004865/0.3859, allocations: 433.1 kB / 484.4 MB, free: 6.676 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.702e-05/0.386, allocations: 92.95 kB / 484.5 MB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.393e-05/0.386, allocations: 4 kB / 484.5 MB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002241/0.3863, allocations: 27.97 kB / 484.5 MB, free: 6.535 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.621e-05/0.3863, allocations: 27.92 kB / 484.6 MB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.796e-05/0.3864, allocations: 11.98 kB / 484.6 MB, free: 6.496 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.103e-05/0.3864, allocations: 115.3 kB / 484.7 MB, free: 6.383 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3864, allocations: 0 / 484.7 MB, free: 6.383 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002968/0.3867, allocations: 52 kB / 484.7 MB, free: 6.332 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: 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.0007418/0.3875, allocations: 1.088 MB / 485.8 MB, free: 5.207 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003202/0.3878, allocations: 235.9 kB / 486.1 MB, free: 4.965 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3878, allocations: 0 / 486.1 MB, free: 4.965 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.388, allocations: 99.94 kB / 486.2 MB, free: 4.867 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003279/0.3883, allocations: 37.25 kB / 486.2 MB, free: 4.836 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001182/0.3895, allocations: 0.6356 MB / 486.8 MB, free: 4.191 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.3898, allocations: 0.7516 MB / 487.6 MB, free: 3.414 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.376e-05/0.3899, allocations: 30.8 kB / 487.6 MB, free: 3.391 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.39, allocations: 67.42 kB / 487.7 MB, free: 3.328 MB / 330.7 MB Notification: Performance of SimCode: time 2.6e-07/0.39, allocations: 0 / 487.7 MB, free: 3.328 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02306/0.4131, allocations: 4.097 MB / 491.8 MB, free: 15.35 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002007/0.4134, allocations: 167.8 kB / 491.9 MB, free: 15.15 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.791/2.204, allocations: 0 / 491.9 MB, free: 15.15 MB / 346.7 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)