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: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 113.3 kB / 16.41 MB, free: 6.484 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.001069/0.001069, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.337/1.337, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04223/0.04223, allocations: 8.111 MB / 278.7 MB, free: 3.965 MB / 222.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.001517/0.001517, allocations: 68.2 kB / 387.4 MB, free: 47.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09162/0.09314, allocations: 48.3 MB / 435.7 MB, free: 8.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003/0.09619, allocations: 1.995 MB / 437.7 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009106/0.09714, allocations: 0.6048 MB / 438.3 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.121e-05/0.09725, allocations: 4 kB / 438.3 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.084e-05/0.09734, allocations: 27.72 kB / 438.3 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001367/0.09749, allocations: 47.55 kB / 438.3 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002454/0.09774, allocations: 67.86 kB / 438.4 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002313/0.09798, allocations: 227.1 kB / 438.6 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002072/0.09819, allocations: 106 kB / 438.7 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001439/0.09834, allocations: 83.78 kB / 438.8 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.09847, allocations: 99.59 kB / 438.9 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.333e-05/0.09851, allocations: 20 kB / 438.9 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.053e-05/0.09854, allocations: 20 kB / 438.9 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.151e-05/0.09859, allocations: 39.86 kB / 439 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.573e-05/0.09869, allocations: 107.5 kB / 439.1 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.09893, allocations: 231.2 kB / 439.3 MB, free: 4.914 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.09894, allocations: 0 / 439.3 MB, free: 4.914 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.09895, allocations: 0 / 439.3 MB, free: 4.914 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.09896, allocations: 0 / 439.3 MB, free: 4.914 MB / 318.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.0006312/0.0996, allocations: 0.4971 MB / 439.8 MB, free: 4.359 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.09965, allocations: 8.031 kB / 439.8 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.897e-05/0.09971, allocations: 28.66 kB / 439.8 MB, free: 4.324 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.09984, allocations: 180.2 kB / 440 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.09986, allocations: 16.75 kB / 440 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.003e-05/0.09991, allocations: 28.28 kB / 440.1 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002569/0.1002, allocations: 194.1 kB / 440.3 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.1002, allocations: 4 kB / 440.3 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.176e-05/0.1002, allocations: 4 kB / 440.3 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.1002, allocations: 7.938 kB / 440.3 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001693/0.1004, allocations: 113.1 kB / 440.4 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009338/0.1014, allocations: 0.7123 MB / 441.1 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003044/0.1017, allocations: 251.1 kB / 441.3 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001898/0.1019, allocations: 112.8 kB / 441.5 MB, free: 2.586 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.191e-05/0.1019, allocations: 4 kB / 441.5 MB, free: 2.582 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002819/0.1022, allocations: 186.7 kB / 441.6 MB, free: 2.375 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.543e-06/0.1022, allocations: 0 / 441.6 MB, free: 2.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.001056/0.1033, allocations: 0.7952 MB / 442.4 MB, free: 1.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/0.1033, allocations: 136.5 kB / 442.6 MB, free: 1.336 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.548e-05/0.1034, allocations: 129.8 kB / 442.7 MB, free: 1.199 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.1034, allocations: 37.69 kB / 442.7 MB, free: 1.156 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.365e-05/0.1035, allocations: 132.4 kB / 442.9 MB, free: 1.023 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.28e-05/0.1035, allocations: 86.83 kB / 442.9 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.124e-05/0.1036, allocations: 53.7 kB / 443 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.524e-05/0.1037, allocations: 330.8 kB / 443.3 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.516e-05/0.1038, allocations: 60.31 kB / 443.4 MB, free: 496 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001121/0.1039, allocations: 136.5 kB / 443.5 MB, free: 332 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002336/0.1041, allocations: 268.1 kB / 443.8 MB, free: 24 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.1041, allocations: 0 / 443.8 MB, free: 24 kB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004418/0.1046, allocations: 292.6 kB / 444.1 MB, free: 15.72 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.288e-05/0.1046, allocations: 37.69 kB / 444.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.1046, allocations: 7.938 kB / 444.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.1047, allocations: 4 kB / 444.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002196/0.1049, allocations: 55.91 kB / 444.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.1049, allocations: 4 kB / 444.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.105, allocations: 19.91 kB / 444.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.689e-05/0.105, allocations: 8 kB / 444.2 MB, free: 15.58 MB / 334.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.0002242/0.1053, allocations: 179.8 kB / 444.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.853e-05/0.1053, allocations: 15.91 kB / 444.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.677e-05/0.1054, allocations: 20.78 kB / 444.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1054, allocations: 4 kB / 444.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.1054, allocations: 0 / 444.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.1054, allocations: 3.984 kB / 444.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009596/0.1064, allocations: 0.7006 MB / 445.1 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.1064, allocations: 7.938 kB / 445.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001946/0.1066, allocations: 43.91 kB / 445.2 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.1066, allocations: 0 / 445.2 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/0.1066, allocations: 8 kB / 445.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.1066, allocations: 7.938 kB / 445.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.1066, allocations: 0 / 445.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006068/0.1072, allocations: 470.5 kB / 445.6 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.885e-05/0.1073, allocations: 89.05 kB / 445.7 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.552e-05/0.1074, allocations: 8 kB / 445.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.1075, allocations: 8 kB / 445.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.218e-05/0.1075, allocations: 11.98 kB / 445.8 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.038e-05/0.1076, allocations: 15.98 kB / 445.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.193e-05/0.1077, allocations: 99.2 kB / 445.9 MB, free: 13.78 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1077, allocations: 0 / 445.9 MB, free: 13.78 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003297/0.108, allocations: 56 kB / 445.9 MB, free: 13.73 MB / 334.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.000145/0.1082, allocations: 128.3 kB / 446 MB, free: 13.6 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004086/0.1086, allocations: 255.8 kB / 446.3 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1086, allocations: 0 / 446.3 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002077/0.1088, allocations: 199.3 kB / 446.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.1091, allocations: 17.66 kB / 446.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.1102, allocations: 0.6308 MB / 447.1 MB, free: 12.44 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003969/0.1106, allocations: 0.7318 MB / 447.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.734e-05/0.1107, allocations: 19.44 kB / 447.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1107, allocations: 0 / 447.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of Templates: time 0.004259/0.115, allocations: 2.134 MB / 450 MB, free: 9.523 MB / 334.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.makefile (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 & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1)