Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009158/0.0009157, allocations: 90.52 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.008291/0.008292, allocations: 171.1 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.519/1.519, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03798/0.03798, allocations: 8.106 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.000564/0.0005638, allocations: 19.12 kB / 338.9 MB, free: 26.68 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.108, allocations: 49.27 MB / 388.2 MB, free: 9.355 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.0034/0.1115, allocations: 1.657 MB / 389.8 MB, free: 7.684 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008527/0.1124, allocations: 227.3 kB / 390 MB, free: 7.461 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002137/0.1126, allocations: 4 kB / 390 MB, free: 7.457 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.1128, allocations: 19.84 kB / 390.1 MB, free: 7.438 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002823/0.1131, allocations: 39.67 kB / 390.1 MB, free: 7.398 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003905/0.1135, allocations: 35.98 kB / 390.1 MB, free: 7.363 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004207/0.1139, allocations: 187.2 kB / 390.3 MB, free: 7.18 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003204/0.1142, allocations: 78.61 kB / 390.4 MB, free: 7.105 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001575/0.1144, allocations: 67.77 kB / 390.5 MB, free: 7.039 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001877/0.1146, allocations: 63.7 kB / 390.5 MB, free: 6.977 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.121e-05/0.1147, allocations: 12 kB / 390.5 MB, free: 6.965 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.516e-05/0.1147, allocations: 8 kB / 390.5 MB, free: 6.957 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.782e-05/0.1148, allocations: 31.86 kB / 390.6 MB, free: 6.926 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001584/0.115, allocations: 105.3 kB / 390.7 MB, free: 6.816 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003109/0.1153, allocations: 195.5 kB / 390.9 MB, free: 6.625 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1153, allocations: 0 / 390.9 MB, free: 6.625 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.766e-06/0.1153, allocations: 0 / 390.9 MB, free: 6.625 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.385e-06/0.1153, allocations: 0 / 390.9 MB, free: 6.625 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0009542/0.1163, allocations: 435.3 kB / 391.3 MB, free: 6.145 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.844e-05/0.1164, allocations: 15.97 kB / 391.3 MB, free: 6.129 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.1165, allocations: 16.75 kB / 391.3 MB, free: 6.113 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002251/0.1167, allocations: 176.2 kB / 391.5 MB, free: 5.902 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.452e-05/0.1168, allocations: 16.75 kB / 391.5 MB, free: 5.887 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.401e-05/0.1169, allocations: 24.28 kB / 391.5 MB, free: 5.863 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005245/0.1174, allocations: 164.9 kB / 391.7 MB, free: 5.699 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.211e-05/0.1175, allocations: 8.188 kB / 391.7 MB, free: 5.691 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.306e-05/0.1175, allocations: 11.94 kB / 391.7 MB, free: 5.68 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.798e-05/0.1175, allocations: 7.984 kB / 391.7 MB, free: 5.672 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003159/0.1179, allocations: 111.6 kB / 391.8 MB, free: 5.562 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.1196, allocations: 0.7065 MB / 392.5 MB, free: 4.785 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000562/0.1202, allocations: 231.6 kB / 392.8 MB, free: 4.531 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002851/0.1205, allocations: 92.83 kB / 392.9 MB, free: 4.438 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.555e-05/0.1205, allocations: 0 / 392.9 MB, free: 4.438 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002954/0.1208, allocations: 99.66 kB / 393 MB, free: 4.328 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 2.595e-06/0.1209, allocations: 0 / 393 MB, free: 4.328 MB / 286.1 MB Notification: Performance of matching and sorting (n=18): time 0.001411/0.1223, allocations: 0.5117 MB / 393.5 MB, free: 3.766 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.1224, allocations: 55.41 kB / 393.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001701/0.1225, allocations: 122 kB / 393.6 MB, free: 3.566 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.1226, allocations: 33.7 kB / 393.7 MB, free: 3.527 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.1227, allocations: 135.9 kB / 393.8 MB, free: 3.391 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.578e-05/0.1228, allocations: 71.08 kB / 393.9 MB, free: 3.32 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.826e-05/0.1229, allocations: 21.72 kB / 393.9 MB, free: 3.293 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.1231, allocations: 322.8 kB / 394.2 MB, free: 2.969 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.1233, allocations: 47.97 kB / 394.3 MB, free: 2.922 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.1235, allocations: 111.8 kB / 394.4 MB, free: 2.789 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003552/0.1238, allocations: 162.7 kB / 394.5 MB, free: 2.605 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1239, allocations: 0 / 394.5 MB, free: 2.605 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004835/0.1243, allocations: 201.3 kB / 394.7 MB, free: 2.402 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.1244, allocations: 4.219 kB / 394.7 MB, free: 2.398 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.1244, allocations: 8 kB / 394.7 MB, free: 2.391 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.1244, allocations: 7.938 kB / 394.7 MB, free: 2.383 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002597/0.1247, allocations: 47.98 kB / 394.8 MB, free: 2.336 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.1247, allocations: 3.938 kB / 394.8 MB, free: 2.332 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.1248, allocations: 8 kB / 394.8 MB, free: 2.324 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.1249, allocations: 8 kB / 394.8 MB, free: 2.316 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,sampleHold.w,$PRE.sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * 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.00016/0.125, allocations: 133.8 kB / 394.9 MB, free: 2.176 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.138e-05/0.1251, allocations: 15.75 kB / 395 MB, free: 2.16 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.214e-05/0.1252, allocations: 24.84 kB / 395 MB, free: 2.133 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.1252, allocations: 0 / 395 MB, free: 2.133 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.1252, allocations: 0 / 395 MB, free: 2.133 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.1252, allocations: 7.938 kB / 395 MB, free: 2.125 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009017/0.1261, allocations: 0.5099 MB / 395.5 MB, free: 1.559 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.1261, allocations: 4 kB / 395.5 MB, free: 1.555 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002765/0.1264, allocations: 39.98 kB / 395.5 MB, free: 1.516 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.261e-06/0.1264, allocations: 0 / 395.5 MB, free: 1.516 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.746e-05/0.1265, allocations: 8 kB / 395.5 MB, free: 1.508 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.1265, allocations: 0 / 395.5 MB, free: 1.508 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1265, allocations: 0 / 395.5 MB, free: 1.508 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005639/0.1271, allocations: 305.6 kB / 395.8 MB, free: 1.195 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.029e-05/0.1272, allocations: 85.02 kB / 395.9 MB, free: 1.094 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.47e-05/0.1272, allocations: 4 kB / 395.9 MB, free: 1.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.1273, allocations: 4 kB / 395.9 MB, free: 1.086 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.561e-05/0.1274, allocations: 16.03 kB / 395.9 MB, free: 1.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.1274, allocations: 11.92 kB / 396 MB, free: 1.059 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.018e-05/0.1275, allocations: 91.03 kB / 396 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1275, allocations: 0 / 396 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004636/0.128, allocations: 43.98 kB / 396.1 MB, free: 0.9297 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.w,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001661/0.1282, allocations: 103.2 kB / 396.2 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003764/0.1286, allocations: 136 kB / 396.3 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1286, allocations: 0 / 396.3 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.1287, allocations: 59.83 kB / 396.4 MB, free: 0.625 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003509/0.1291, allocations: 12 kB / 396.4 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001601/0.1307, allocations: 0.6938 MB / 397.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004363/0.1312, allocations: 0.7242 MB / 397.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.026e-05/0.1313, allocations: 17.42 kB / 397.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.108e-05/0.1313, allocations: 19.38 kB / 397.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1314, allocations: 0 / 397.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of Templates: time 0.005106/0.1365, allocations: 1.026 MB / 398.9 MB, free: 14.09 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.makefile Environment - environmentSimulation: (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1) Environment - environmentSimulation: