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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 90.98 kB / 15.36 MB, free: 0.7383 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.008237/0.008237, allocations: 171.4 kB / 16.26 MB, free: 6.613 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.67/1.67, 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.04169/0.04169, allocations: 8.096 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.0005767/0.0005768, allocations: 20.66 kB / 339 MB, free: 26.56 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1133, allocations: 49.27 MB / 388.3 MB, free: 9.238 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003031/0.1164, allocations: 2.096 MB / 390.4 MB, free: 7.125 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.1177, allocations: 0.6671 MB / 391 MB, free: 6.449 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.1178, allocations: 11.88 kB / 391 MB, free: 6.438 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001162/0.1179, allocations: 23.78 kB / 391.1 MB, free: 6.414 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001351/0.1181, allocations: 63.53 kB / 391.1 MB, free: 6.352 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002226/0.1183, allocations: 63.88 kB / 391.2 MB, free: 6.289 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002749/0.1186, allocations: 278.8 kB / 391.5 MB, free: 6.016 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.1188, allocations: 90.16 kB / 391.5 MB, free: 5.926 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.1189, allocations: 95.58 kB / 391.6 MB, free: 5.832 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.1191, allocations: 119.4 kB / 391.7 MB, free: 5.715 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.719e-05/0.1191, allocations: 12 kB / 391.8 MB, free: 5.703 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.777e-05/0.1192, allocations: 12 kB / 391.8 MB, free: 5.691 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.342e-05/0.1192, allocations: 47.77 kB / 391.8 MB, free: 5.645 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.1194, allocations: 141.1 kB / 392 MB, free: 5.5 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002435/0.1196, allocations: 250.9 kB / 392.2 MB, free: 5.254 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1197, allocations: 3.984 kB / 392.2 MB, free: 5.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1197, allocations: 0 / 392.2 MB, free: 5.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.291e-06/0.1197, allocations: 0 / 392.2 MB, free: 5.25 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.0009386/0.1206, allocations: 0.5553 MB / 392.8 MB, free: 4.637 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.1207, allocations: 12.03 kB / 392.8 MB, free: 4.625 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.946e-05/0.1207, allocations: 50.73 kB / 392.8 MB, free: 4.566 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.373e-05/0.1208, allocations: 28.66 kB / 392.9 MB, free: 4.539 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002942/0.1211, allocations: 255.8 kB / 393.1 MB, free: 4.25 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.1211, allocations: 16.81 kB / 393.1 MB, free: 4.234 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.521e-05/0.1212, allocations: 24.38 kB / 393.1 MB, free: 4.211 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005494/0.1218, allocations: 231.3 kB / 393.4 MB, free: 3.977 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.25e-05/0.1218, allocations: 11.94 kB / 393.4 MB, free: 3.965 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.557e-05/0.1218, allocations: 8 kB / 393.4 MB, free: 3.957 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.1218, allocations: 4 kB / 393.4 MB, free: 3.953 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005914/0.1224, allocations: 221.6 kB / 393.6 MB, free: 3.738 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.1235, allocations: 0.6778 MB / 394.3 MB, free: 3.012 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007595/0.1243, allocations: 270.4 kB / 394.5 MB, free: 2.738 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003221/0.1246, allocations: 137.1 kB / 394.7 MB, free: 2.605 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.1247, allocations: 7.938 kB / 394.7 MB, free: 2.598 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005045/0.1252, allocations: 185.1 kB / 394.9 MB, free: 2.406 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 3.436e-06/0.1252, allocations: 0 / 394.9 MB, free: 2.406 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.00277/0.128, allocations: 1.27 MB / 396.1 MB, free: 1.047 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/0.128, allocations: 55.41 kB / 396.2 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001689/0.1282, allocations: 186.9 kB / 396.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.63e-05/0.1283, allocations: 29.7 kB / 396.4 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.1284, allocations: 144.8 kB / 396.5 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.578e-05/0.1285, allocations: 106.4 kB / 396.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.086e-05/0.1285, allocations: 33.7 kB / 396.7 MB, free: 476 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.1287, allocations: 338.8 kB / 397 MB, free: 128 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002978/0.129, allocations: 108.3 kB / 397.1 MB, free: 16 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003605/0.1293, allocations: 151.4 kB / 397.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/0.1308, allocations: 0.6012 MB / 397.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.1308, allocations: 0 / 397.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007653/0.1315, allocations: 378.4 kB / 398.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.724e-05/0.1316, allocations: 39.98 kB / 398.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.1316, allocations: 0 / 398.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.1316, allocations: 7.938 kB / 398.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003026/0.1319, allocations: 87.94 kB / 398.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.1319, allocations: 0 / 398.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002212/0.1322, allocations: 31.97 kB / 398.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.299e-05/0.1322, allocations: 12 kB / 398.4 MB, free: 14.66 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.000233/0.1324, allocations: 165 kB / 398.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.529e-05/0.1325, allocations: 27.64 kB / 398.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.765e-05/0.1326, allocations: 34.64 kB / 398.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.1326, allocations: 8 kB / 398.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.1326, allocations: 0 / 398.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.1326, allocations: 0 / 398.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001268/0.1339, allocations: 0.8072 MB / 399.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.1339, allocations: 4 kB / 399.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003096/0.1342, allocations: 71.94 kB / 399.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.1342, allocations: 0 / 399.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.1343, allocations: 11.94 kB / 399.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.1343, allocations: 7.984 kB / 399.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.1343, allocations: 4 kB / 399.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.1354, allocations: 0.571 MB / 400.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.366e-05/0.1355, allocations: 100.8 kB / 400.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.1356, allocations: 4 kB / 400.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.1358, allocations: 32.02 kB / 400.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.1359, allocations: 35.83 kB / 400.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.115e-05/0.1359, allocations: 12 kB / 400.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001309/0.1361, allocations: 132.3 kB / 400.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1361, allocations: 4 kB / 400.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003372/0.1364, allocations: 67.98 kB / 400.5 MB, free: 12.46 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.001481/0.1379, allocations: 1.109 MB / 401.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008115/0.1387, allocations: 350.9 kB / 402 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.227e-06/0.1388, allocations: 0 / 402 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003661/0.1391, allocations: 168 kB / 402.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000487/0.1396, allocations: 47.91 kB / 402.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005746/0.1454, allocations: 3.221 MB / 405.4 MB, free: 7.418 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003061/0.1457, allocations: 0.7522 MB / 406.1 MB, free: 6.641 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000105/0.1458, allocations: 22.3 kB / 406.2 MB, free: 6.617 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.146, allocations: 75.41 kB / 406.2 MB, free: 6.543 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.146, allocations: 4 kB / 406.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01765/0.1636, allocations: 4.883 MB / 411.1 MB, free: 1.812 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002174/0.1639, allocations: 254.7 kB / 411.4 MB, free: 1.547 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.02/2.184, allocations: 0 / 411.4 MB, free: 1.547 MB / 302.1 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/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)