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.0009714/0.0009713, allocations: 100 kB / 15.05 MB, free: 1.105 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.0009992/0.0009994, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.57/1.57, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03966/0.03966, allocations: 8.093 MB / 278.5 MB, free: 13.23 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.0006115/0.0006119, allocations: 19.06 kB / 338.2 MB, free: 27.06 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09331/0.09394, allocations: 49.28 MB / 387.5 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.002382/0.09637, allocations: 1.537 MB / 389 MB, free: 8.172 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005568/0.09696, allocations: 235.3 kB / 389.3 MB, free: 7.941 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.09711, allocations: 4 kB / 389.3 MB, free: 7.938 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.221e-05/0.09717, allocations: 15.86 kB / 389.3 MB, free: 7.922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001369/0.09732, allocations: 47.88 kB / 389.3 MB, free: 7.875 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000262/0.09759, allocations: 39.91 kB / 389.4 MB, free: 7.836 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.09781, allocations: 131.8 kB / 389.5 MB, free: 7.707 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001942/0.09802, allocations: 66.05 kB / 389.6 MB, free: 7.641 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.275e-05/0.09811, allocations: 55.8 kB / 389.6 MB, free: 7.586 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001201/0.09823, allocations: 63.7 kB / 389.7 MB, free: 7.523 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.863e-05/0.09827, allocations: 12 kB / 389.7 MB, free: 7.512 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.715e-05/0.0983, allocations: 8 kB / 389.7 MB, free: 7.504 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.151e-05/0.09835, allocations: 35.89 kB / 389.7 MB, free: 7.469 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.613e-05/0.09842, allocations: 61.64 kB / 389.8 MB, free: 7.402 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001671/0.0986, allocations: 151.8 kB / 390 MB, free: 7.254 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.09861, allocations: 0 / 390 MB, free: 7.254 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.09862, allocations: 3.938 kB / 390 MB, free: 7.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.09864, allocations: 0 / 390 MB, free: 7.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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0007001/0.09934, allocations: 431.2 kB / 390.4 MB, free: 6.777 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.09939, allocations: 12.03 kB / 390.4 MB, free: 6.766 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.466e-05/0.09946, allocations: 23.81 kB / 390.4 MB, free: 6.742 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001938/0.09966, allocations: 178.9 kB / 390.6 MB, free: 6.527 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.313e-05/0.0997, allocations: 16.33 kB / 390.6 MB, free: 6.512 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.108e-05/0.09977, allocations: 23.91 kB / 390.6 MB, free: 6.488 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003031/0.1001, allocations: 160.6 kB / 390.8 MB, free: 6.328 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.1001, allocations: 0 / 390.8 MB, free: 6.328 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.1001, allocations: 8 kB / 390.8 MB, free: 6.32 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.1001, allocations: 4 kB / 390.8 MB, free: 6.316 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002005/0.1003, allocations: 115.7 kB / 390.9 MB, free: 6.203 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.1015, allocations: 0.7065 MB / 391.6 MB, free: 5.43 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003376/0.1019, allocations: 235.6 kB / 391.8 MB, free: 5.172 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.1019, allocations: 4 kB / 391.9 MB, free: 5.168 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002019/0.1021, allocations: 91.17 kB / 391.9 MB, free: 5.07 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 2.174e-06/0.1021, allocations: 0 / 391.9 MB, free: 5.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008861/0.103, allocations: 0.5125 MB / 392.5 MB, free: 4.504 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.1031, allocations: 59.36 kB / 392.5 MB, free: 4.434 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.1032, allocations: 129.7 kB / 392.6 MB, free: 4.297 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.1032, allocations: 33.64 kB / 392.7 MB, free: 4.258 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.582e-05/0.1033, allocations: 132 kB / 392.8 MB, free: 4.125 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.64e-05/0.1034, allocations: 71 kB / 392.9 MB, free: 4.055 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.051e-05/0.1034, allocations: 8 kB / 392.9 MB, free: 4.047 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.1035, allocations: 318.8 kB / 393.2 MB, free: 3.727 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.1036, allocations: 51.98 kB / 393.2 MB, free: 3.676 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.1037, allocations: 108.1 kB / 393.3 MB, free: 3.547 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001075/0.1039, allocations: 64.94 kB / 393.4 MB, free: 3.484 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.1039, allocations: 0 / 393.4 MB, free: 3.484 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000308/0.1042, allocations: 203.8 kB / 393.6 MB, free: 3.281 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.1042, allocations: 8 kB / 393.6 MB, free: 3.273 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.1042, allocations: 3.984 kB / 393.6 MB, free: 3.27 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.1042, allocations: 4 kB / 393.6 MB, free: 3.266 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002135/0.1045, allocations: 48.14 kB / 393.7 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.46e-05/0.1045, allocations: 15.94 kB / 393.7 MB, free: 3.203 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.968e-05/0.1046, allocations: 8 kB / 393.7 MB, free: 3.195 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.1046, allocations: 12 kB / 393.7 MB, free: 3.184 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,$PRE.sampleHold.w,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001176/0.1047, allocations: 129.8 kB / 393.8 MB, free: 3.047 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.016e-05/0.1047, allocations: 7.906 kB / 393.8 MB, free: 3.039 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.481e-05/0.1048, allocations: 12.84 kB / 393.9 MB, free: 3.027 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.1048, allocations: 4 kB / 393.9 MB, free: 3.023 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.1048, allocations: 3.938 kB / 393.9 MB, free: 3.02 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.685e-05/0.1048, allocations: 11.94 kB / 393.9 MB, free: 3.008 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000615/0.1055, allocations: 0.4984 MB / 394.4 MB, free: 2.453 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.1055, allocations: 4 kB / 394.4 MB, free: 2.449 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001997/0.1057, allocations: 35.92 kB / 394.4 MB, free: 2.414 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.1057, allocations: 4 kB / 394.4 MB, free: 2.41 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.1057, allocations: 7.938 kB / 394.4 MB, free: 2.402 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.1057, allocations: 7.938 kB / 394.4 MB, free: 2.395 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1057, allocations: 0 / 394.4 MB, free: 2.395 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003845/0.1061, allocations: 313.7 kB / 394.7 MB, free: 2.074 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.305e-05/0.1062, allocations: 85.05 kB / 394.8 MB, free: 1.973 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.569e-05/0.1062, allocations: 4 kB / 394.8 MB, free: 1.969 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.945e-05/0.1063, allocations: 4 kB / 394.8 MB, free: 1.965 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.953e-05/0.1063, allocations: 11.94 kB / 394.8 MB, free: 1.953 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.1064, allocations: 8 kB / 394.8 MB, free: 1.945 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.637e-05/0.1064, allocations: 95.27 kB / 394.9 MB, free: 1.852 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1064, allocations: 3.938 kB / 394.9 MB, free: 1.848 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002883/0.1067, allocations: 40 kB / 395 MB, free: 1.809 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.672e-05/0.1068, allocations: 99.25 kB / 395.1 MB, free: 1.699 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002353/0.1071, allocations: 139.7 kB / 395.2 MB, free: 1.562 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1071, allocations: 0 / 395.2 MB, free: 1.562 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.555e-05/0.1072, allocations: 59.92 kB / 395.3 MB, free: 1.504 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001475/0.1073, allocations: 12.94 kB / 395.3 MB, free: 1.492 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009464/0.1083, allocations: 0.6777 MB / 396 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.1086, allocations: 0.7282 MB / 396.7 MB, free: 32 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.462e-05/0.1086, allocations: 13.42 kB / 396.7 MB, free: 16 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.596e-05/0.1087, allocations: 15.44 kB / 396.7 MB, free: 0 / 286.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1087, allocations: 0 / 396.7 MB, free: 0 / 286.1 MB Notification: Performance of Templates: time 0.003236/0.1119, allocations: 0.9127 MB / 397.6 MB, free: 15.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: