Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.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.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter",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.001006/0.001006, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001008/0.001008, allocations: 192.8 kB / 16.14 MB, free: 6.668 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.355/1.355, allocations: 205.1 MB / 222 MB, free: 4.941 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04114/0.04114, allocations: 8.115 MB / 277.4 MB, free: 13.57 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.001617/0.001617, allocations: 68.28 kB / 336.6 MB, free: 26.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1075, allocations: 48.28 MB / 384.9 MB, free: 10.55 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.004669/0.1123, allocations: 2.047 MB / 386.9 MB, free: 8.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00146/0.1138, allocations: 0.6126 MB / 387.6 MB, free: 7.859 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001585/0.114, allocations: 4 kB / 387.6 MB, free: 7.855 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001259/0.1141, allocations: 11.86 kB / 387.6 MB, free: 7.844 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002507/0.1144, allocations: 43.67 kB / 387.6 MB, free: 7.801 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003082/0.1147, allocations: 55.89 kB / 387.7 MB, free: 7.746 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003448/0.1151, allocations: 207.2 kB / 387.9 MB, free: 7.543 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002427/0.1153, allocations: 78.73 kB / 388 MB, free: 7.469 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002379/0.1156, allocations: 79.72 kB / 388 MB, free: 7.391 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003222/0.1159, allocations: 95.59 kB / 388.1 MB, free: 7.297 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.216e-05/0.1159, allocations: 16 kB / 388.1 MB, free: 7.281 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.132e-05/0.116, allocations: 16 kB / 388.2 MB, free: 7.266 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.837e-05/0.1161, allocations: 35.86 kB / 388.2 MB, free: 7.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.1162, allocations: 99.59 kB / 388.3 MB, free: 7.133 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002875/0.1165, allocations: 223.5 kB / 388.5 MB, free: 6.914 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.1166, allocations: 0 / 388.5 MB, free: 6.914 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1166, allocations: 0 / 388.5 MB, free: 6.914 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.1166, allocations: 0 / 388.5 MB, free: 6.914 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.000915/0.1175, allocations: 0.5009 MB / 389 MB, free: 6.355 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.794e-05/0.1176, allocations: 8.031 kB / 389 MB, free: 6.348 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.994e-05/0.1177, allocations: 66.66 kB / 389.1 MB, free: 6.273 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.099e-05/0.1177, allocations: 20.75 kB / 389.1 MB, free: 6.254 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001919/0.1179, allocations: 180.1 kB / 389.3 MB, free: 6.039 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.118, allocations: 20.69 kB / 389.3 MB, free: 6.02 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.148e-05/0.118, allocations: 28.31 kB / 389.3 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004237/0.1185, allocations: 186 kB / 389.5 MB, free: 5.801 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.1185, allocations: 4 kB / 389.5 MB, free: 5.797 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.613e-05/0.1185, allocations: 4 kB / 389.5 MB, free: 5.793 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.1186, allocations: 4 kB / 389.5 MB, free: 5.789 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000333/0.1189, allocations: 117.1 kB / 389.6 MB, free: 5.676 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001491/0.1204, allocations: 0.7318 MB / 390.4 MB, free: 4.883 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000453/0.1209, allocations: 239.6 kB / 390.6 MB, free: 4.621 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002814/0.1212, allocations: 112.8 kB / 390.7 MB, free: 4.508 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.285e-05/0.1212, allocations: 0 / 390.7 MB, free: 4.508 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003941/0.1216, allocations: 198.1 kB / 390.9 MB, free: 4.293 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 2.053e-06/0.1216, allocations: 0 / 390.9 MB, free: 4.293 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.001612/0.1232, allocations: 0.787 MB / 391.7 MB, free: 3.426 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.1233, allocations: 136.5 kB / 391.8 MB, free: 3.262 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002082/0.1236, allocations: 133.8 kB / 392 MB, free: 3.121 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.1236, allocations: 33.7 kB / 392 MB, free: 3.082 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.1237, allocations: 140.4 kB / 392.1 MB, free: 2.941 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.733e-05/0.1238, allocations: 82.83 kB / 392.2 MB, free: 2.859 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.1239, allocations: 61.64 kB / 392.3 MB, free: 2.793 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002347/0.1242, allocations: 322.8 kB / 392.6 MB, free: 2.469 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001538/0.1243, allocations: 64.3 kB / 392.6 MB, free: 2.406 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.1245, allocations: 136.4 kB / 392.8 MB, free: 2.246 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003967/0.125, allocations: 260.5 kB / 393 MB, free: 1.953 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.125, allocations: 4 kB / 393 MB, free: 1.949 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000534/0.1255, allocations: 288.1 kB / 393.3 MB, free: 1.656 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.26e-05/0.1256, allocations: 44.14 kB / 393.4 MB, free: 1.609 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.1256, allocations: 256 / 393.4 MB, free: 1.609 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.1256, allocations: 8 kB / 393.4 MB, free: 1.602 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002947/0.1259, allocations: 59.91 kB / 393.4 MB, free: 1.543 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/0.1259, allocations: 4 kB / 393.4 MB, free: 1.539 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000139/0.1261, allocations: 15.92 kB / 393.4 MB, free: 1.523 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.506e-05/0.1261, allocations: 16 kB / 393.5 MB, free: 1.508 MB / 286.1 MB Warning: Assuming fixed start value for the following 1 variables: pulseCounter.w:DISCRETE(flow=false fixed = true ) "Sensed speed" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.pulseCounter.w,pulseCounter.w,pulseCounter.count,$PRE.pulseCounter.count,pulseCounter.prev_phi,$PRE.pulseCounter.prev_phi,pulseCounter.next_phi,$PRE.pulseCounter.next_phi,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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.0002345/0.1264, allocations: 183.3 kB / 393.6 MB, free: 1.312 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.288e-05/0.1264, allocations: 19.75 kB / 393.7 MB, free: 1.293 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.953e-05/0.1265, allocations: 24.78 kB / 393.7 MB, free: 1.262 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.1265, allocations: 4 kB / 393.7 MB, free: 1.258 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1265, allocations: 0 / 393.7 MB, free: 1.258 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.1265, allocations: 0 / 393.7 MB, free: 1.258 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/0.1278, allocations: 0.6967 MB / 394.4 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.1278, allocations: 0 / 394.4 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002622/0.1281, allocations: 43.97 kB / 394.4 MB, free: 460 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.515e-06/0.1281, allocations: 4 kB / 394.4 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.915e-05/0.1282, allocations: 15.97 kB / 394.4 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1282, allocations: 0 / 394.4 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1282, allocations: 0 / 394.4 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008268/0.129, allocations: 470.7 kB / 394.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.65e-05/0.1291, allocations: 88.92 kB / 395 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.088e-05/0.1292, allocations: 12 kB / 395 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.1293, allocations: 8.031 kB / 395 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.107e-05/0.1294, allocations: 11.98 kB / 395 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-05/0.1294, allocations: 15.94 kB / 395 MB, free: 15.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.56e-05/0.1295, allocations: 95.27 kB / 395.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1295, allocations: 0 / 395.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004447/0.13, allocations: 60 kB / 395.2 MB, free: 15.64 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.flange_a.phi,inertia1.w) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,$whenCondition3,pulseCounter.w,pulseCounter.next_phi,pulseCounter.prev_phi,pulseCounter.count) * Number of discrete states: 7 (pulseCounter.w,$whenCondition3,pulseCounter.count,pulseCounter.prev_phi,pulseCounter.next_phi,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 18 * 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 Backend phase and start with SimCode phase: time 0.001173/0.1312, allocations: 0.9967 MB / 396.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004661/0.1317, allocations: 252 kB / 396.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1317, allocations: 0 / 396.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003604/0.132, allocations: 195.3 kB / 396.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/0.1324, allocations: 27.81 kB / 396.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003861/0.1363, allocations: 2.47 MB / 399.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.1367, allocations: 0.728 MB / 399.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.996e-05/0.1368, allocations: 21.53 kB / 399.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.1369, allocations: 59.36 kB / 399.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of SimCode: time 2.825e-06/0.1369, allocations: 0 / 399.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01433/0.1512, allocations: 3.214 MB / 403.1 MB, free: 7.559 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002431/0.1515, allocations: 235.8 kB / 403.4 MB, free: 7.305 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.771/1.922, allocations: 0 / 403.4 MB, free: 7.305 MB / 302.1 MB (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1)