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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/ModelicaByExample 0.6.0/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 98.03 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01076/0.01076, allocations: 168.9 kB / 16.26 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.871/1.871, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04007/0.04007, allocations: 8.092 MB / 278.8 MB, free: 13.12 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005671/0.0005673, allocations: 20 kB / 338.9 MB, free: 26.67 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1118, allocations: 49.26 MB / 388.2 MB, free: 9.355 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003234/0.1151, allocations: 2.108 MB / 390.3 MB, free: 7.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.1171, allocations: 0.6671 MB / 390.9 MB, free: 6.555 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003817/0.1175, allocations: 7.938 kB / 390.9 MB, free: 6.547 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000222/0.1177, allocations: 27.72 kB / 391 MB, free: 6.52 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004118/0.1182, allocations: 55.55 kB / 391 MB, free: 6.465 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004006/0.1186, allocations: 75.86 kB / 391.1 MB, free: 6.391 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005113/0.1191, allocations: 270.8 kB / 391.4 MB, free: 6.125 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002664/0.1194, allocations: 89.88 kB / 391.4 MB, free: 6.035 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001558/0.1195, allocations: 95.58 kB / 391.5 MB, free: 5.941 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001698/0.1197, allocations: 107.5 kB / 391.6 MB, free: 5.836 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.655e-05/0.1198, allocations: 15.94 kB / 391.7 MB, free: 5.82 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.028e-05/0.1198, allocations: 16 kB / 391.7 MB, free: 5.805 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.805e-05/0.1199, allocations: 51.75 kB / 391.7 MB, free: 5.754 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001468/0.12, allocations: 133.1 kB / 391.9 MB, free: 5.617 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002999/0.1203, allocations: 263.2 kB / 392.1 MB, free: 5.359 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1204, allocations: 0 / 392.1 MB, free: 5.359 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.1204, allocations: 0 / 392.1 MB, free: 5.359 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1204, allocations: 0 / 392.1 MB, free: 5.359 MB / 286.1 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.001108/0.1215, allocations: 0.5437 MB / 392.7 MB, free: 4.758 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.1216, allocations: 8.031 kB / 392.7 MB, free: 4.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.249e-05/0.1216, allocations: 28.66 kB / 392.7 MB, free: 4.723 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003111/0.122, allocations: 251.7 kB / 392.9 MB, free: 4.438 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.697e-05/0.122, allocations: 20.8 kB / 393 MB, free: 4.418 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.372e-05/0.1221, allocations: 28.38 kB / 393 MB, free: 4.391 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005458/0.1226, allocations: 235.5 kB / 393.2 MB, free: 4.152 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.1226, allocations: 0 / 393.2 MB, free: 4.152 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.904e-05/0.1227, allocations: 12 kB / 393.2 MB, free: 4.141 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.1227, allocations: 8 kB / 393.2 MB, free: 4.133 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005882/0.1233, allocations: 221.6 kB / 393.4 MB, free: 3.918 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.1244, allocations: 0.6777 MB / 394.1 MB, free: 3.191 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007611/0.1252, allocations: 270.5 kB / 394.4 MB, free: 2.918 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003456/0.1255, allocations: 137.2 kB / 394.5 MB, free: 2.781 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.1255, allocations: 7.938 kB / 394.5 MB, free: 2.773 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004746/0.126, allocations: 185.1 kB / 394.7 MB, free: 2.582 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 2.174e-06/0.126, allocations: 0 / 394.7 MB, free: 2.582 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.002755/0.1288, allocations: 1.274 MB / 396 MB, free: 1.219 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/0.1289, allocations: 55.41 kB / 396 MB, free: 1.152 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/0.129, allocations: 186.8 kB / 396.2 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.421e-05/0.1291, allocations: 33.7 kB / 396.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.072e-05/0.1292, allocations: 132.8 kB / 396.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.717e-05/0.1293, allocations: 110.4 kB / 396.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.636e-05/0.1293, allocations: 37.7 kB / 396.5 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1295, allocations: 330.8 kB / 396.9 MB, free: 312 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003106/0.1298, allocations: 116.2 kB / 397 MB, free: 192 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003363/0.1301, allocations: 151.3 kB / 397.1 MB, free: 32 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.1316, allocations: 0.5974 MB / 397.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1316, allocations: 0 / 397.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007912/0.1324, allocations: 386.4 kB / 398.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.615e-05/0.1325, allocations: 37.64 kB / 398.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1325, allocations: 0 / 398.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.1325, allocations: 0 / 398.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003067/0.1328, allocations: 87.92 kB / 398.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.1328, allocations: 3.984 kB / 398.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002328/0.1331, allocations: 27.98 kB / 398.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.733e-05/0.1331, allocations: 12 kB / 398.3 MB, free: 14.84 MB / 302.1 MB Warning: Assuming fixed start value for the following 4 variables: springDamper.phi_rel:VARIABLE(start = 0.0 unit = "rad" fixed = true 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 springDamper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real damper.phi_rel:VARIABLE(start = 0.0 unit = "rad" fixed = true 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 damper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" 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,$PRE.trapezoid.count,$PRE.trapezoid.T_start,$PRE.speedSensor.w,trapezoid.count,trapezoid.T_start,speedSensor.w,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002379/0.1334, allocations: 167.3 kB / 398.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.375e-05/0.1334, allocations: 23.75 kB / 398.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.379e-05/0.1335, allocations: 30.64 kB / 398.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.1335, allocations: 4 kB / 398.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.1335, allocations: 0 / 398.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.1335, allocations: 0 / 398.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001318/0.1349, allocations: 0.8071 MB / 399.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.1349, allocations: 0 / 399.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003317/0.1352, allocations: 87.89 kB / 399.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.636e-06/0.1352, allocations: 0 / 399.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.306e-05/0.1353, allocations: 11.98 kB / 399.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.1353, allocations: 0 / 399.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.1353, allocations: 4 kB / 399.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.1364, allocations: 0.5709 MB / 400 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.626e-05/0.1365, allocations: 92.92 kB / 400 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.823e-05/0.1365, allocations: 11.94 kB / 400.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.1368, allocations: 32.02 kB / 400.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.848e-05/0.1369, allocations: 31.91 kB / 400.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.1369, allocations: 7.984 kB / 400.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001201/0.137, allocations: 136.3 kB / 400.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.137, allocations: 0 / 400.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003094/0.1374, allocations: 60 kB / 400.3 MB, free: 12.66 MB / 302.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001399/0.1375, allocations: 119.5 kB / 400.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008085/0.1383, allocations: 342.9 kB / 400.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1383, allocations: 0 / 400.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003884/0.1387, allocations: 164 kB / 400.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004636/0.1392, allocations: 51.56 kB / 401 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002845/0.1421, allocations: 1.055 MB / 402 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.1424, allocations: 0.7561 MB / 402.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001186/0.1425, allocations: 34.27 kB / 402.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.66e-05/0.1426, allocations: 19.44 kB / 402.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1426, allocations: 0 / 402.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of Templates: time 0.006345/0.1489, allocations: 2.681 MB / 405.5 MB, free: 7.422 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.makefile Environment - environmentSimulation: (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 & ./ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1) Environment - environmentSimulation: