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.001088/0.001088, allocations: 111.5 kB / 15.99 MB, free: 6.363 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.001058/0.001058, allocations: 192.2 kB / 16.91 MB, free: 6.191 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.407/1.407, allocations: 205.1 MB / 222.8 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04052/0.04052, allocations: 8.106 MB / 278.2 MB, free: 13.33 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.001774/0.001774, allocations: 67.91 kB / 337.3 MB, free: 26.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09845/0.1002, allocations: 48.3 MB / 385.6 MB, free: 10.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003755/0.104, allocations: 2.008 MB / 387.6 MB, free: 8.496 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005116/0.1046, allocations: 231.3 kB / 387.9 MB, free: 8.27 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.1047, allocations: 4 kB / 387.9 MB, free: 8.266 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.513e-05/0.1048, allocations: 19.84 kB / 387.9 MB, free: 8.246 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001281/0.1049, allocations: 31.75 kB / 387.9 MB, free: 8.215 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002468/0.1052, allocations: 47.84 kB / 388 MB, free: 8.168 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000219/0.1054, allocations: 195.2 kB / 388.2 MB, free: 7.977 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002201/0.1057, allocations: 97.92 kB / 388.3 MB, free: 7.879 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.1058, allocations: 71.78 kB / 388.3 MB, free: 7.809 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.901e-05/0.1059, allocations: 79.69 kB / 388.4 MB, free: 7.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.956e-05/0.1059, allocations: 16 kB / 388.4 MB, free: 7.715 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.2e-05/0.106, allocations: 20 kB / 388.4 MB, free: 7.695 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.148e-05/0.106, allocations: 47.83 kB / 388.5 MB, free: 7.648 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.115e-05/0.1061, allocations: 87.61 kB / 388.6 MB, free: 7.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001591/0.1063, allocations: 159.9 kB / 388.7 MB, free: 7.406 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1063, allocations: 4 kB / 388.7 MB, free: 7.402 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1063, allocations: 0 / 388.7 MB, free: 7.402 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.481e-05/0.1063, allocations: 0 / 388.7 MB, free: 7.402 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.0007901/0.1071, allocations: 459.4 kB / 389.2 MB, free: 6.898 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.805e-05/0.1072, allocations: 8.031 kB / 389.2 MB, free: 6.891 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.95e-05/0.1072, allocations: 20.75 kB / 389.2 MB, free: 6.871 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001918/0.1074, allocations: 184.1 kB / 389.4 MB, free: 6.652 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.256e-05/0.1075, allocations: 20.75 kB / 389.4 MB, free: 6.633 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.079e-05/0.1075, allocations: 20.38 kB / 389.4 MB, free: 6.613 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004076/0.1079, allocations: 168.9 kB / 389.6 MB, free: 6.445 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.108, allocations: 192 / 389.6 MB, free: 6.445 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.108, allocations: 11.94 kB / 389.6 MB, free: 6.434 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.108, allocations: 4 kB / 389.6 MB, free: 6.43 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002035/0.1082, allocations: 111.7 kB / 389.7 MB, free: 6.32 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001197/0.1094, allocations: 0.7065 MB / 390.4 MB, free: 5.547 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003518/0.1098, allocations: 223.6 kB / 390.6 MB, free: 5.301 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002011/0.11, allocations: 92.81 kB / 390.7 MB, free: 5.207 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.11, allocations: 4 kB / 390.7 MB, free: 5.203 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002568/0.1103, allocations: 95.59 kB / 390.8 MB, free: 5.098 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.924e-06/0.1103, allocations: 0 / 390.8 MB, free: 5.098 MB / 286.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009983/0.1113, allocations: 0.5114 MB / 391.3 MB, free: 4.535 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.813e-05/0.1114, allocations: 55.39 kB / 391.4 MB, free: 4.469 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.1115, allocations: 122.1 kB / 391.5 MB, free: 4.336 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.1115, allocations: 33.64 kB / 391.6 MB, free: 4.297 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.597e-05/0.1116, allocations: 139.9 kB / 391.7 MB, free: 4.156 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.699e-05/0.1117, allocations: 67.09 kB / 391.8 MB, free: 4.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.179e-05/0.1118, allocations: 41.72 kB / 391.8 MB, free: 4.043 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1119, allocations: 322.8 kB / 392.1 MB, free: 3.719 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.102e-05/0.112, allocations: 51.97 kB / 392.2 MB, free: 3.668 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.1122, allocations: 107.8 kB / 392.3 MB, free: 3.539 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000219/0.1124, allocations: 166.8 kB / 392.4 MB, free: 3.352 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.1124, allocations: 0 / 392.4 MB, free: 3.352 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000307/0.1127, allocations: 213.2 kB / 392.6 MB, free: 3.137 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.1128, allocations: 11.98 kB / 392.6 MB, free: 3.125 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.1128, allocations: 0 / 392.6 MB, free: 3.125 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.1128, allocations: 4 kB / 392.7 MB, free: 3.121 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002/0.113, allocations: 51.92 kB / 392.7 MB, free: 3.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.113, allocations: 4 kB / 392.7 MB, free: 3.066 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.995e-05/0.1131, allocations: 4 kB / 392.7 MB, free: 3.062 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.259e-05/0.1131, allocations: 8.078 kB / 392.7 MB, free: 3.055 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.0001202/0.1132, allocations: 141.9 kB / 392.9 MB, free: 2.906 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.177e-05/0.1133, allocations: 15.84 kB / 392.9 MB, free: 2.891 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.307e-05/0.1133, allocations: 16.84 kB / 392.9 MB, free: 2.875 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.1133, allocations: 4 kB / 392.9 MB, free: 2.871 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.1134, allocations: 0 / 392.9 MB, free: 2.871 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1134, allocations: 0 / 392.9 MB, free: 2.871 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006841/0.114, allocations: 0.5086 MB / 393.4 MB, free: 2.309 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.1141, allocations: 4 kB / 393.4 MB, free: 2.305 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001996/0.1143, allocations: 43.91 kB / 393.4 MB, free: 2.262 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.1143, allocations: 0 / 393.4 MB, free: 2.262 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.1143, allocations: 4 kB / 393.5 MB, free: 2.258 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.1143, allocations: 4 kB / 393.5 MB, free: 2.254 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1143, allocations: 0 / 393.5 MB, free: 2.254 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003928/0.1147, allocations: 299.4 kB / 393.8 MB, free: 1.945 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.882e-05/0.1148, allocations: 84.95 kB / 393.8 MB, free: 1.844 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.751e-05/0.1148, allocations: 12 kB / 393.8 MB, free: 1.832 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.827e-05/0.1149, allocations: 0 / 393.8 MB, free: 1.832 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.905e-05/0.1149, allocations: 12.03 kB / 393.9 MB, free: 1.82 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.115, allocations: 7.938 kB / 393.9 MB, free: 1.812 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.952e-05/0.115, allocations: 103.1 kB / 394 MB, free: 1.715 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.115, allocations: 0 / 394 MB, free: 1.715 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002907/0.1153, allocations: 40 kB / 394 MB, free: 1.676 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.0001139/0.1154, allocations: 103.2 kB / 394.1 MB, free: 1.562 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002797/0.1157, allocations: 143.7 kB / 394.2 MB, free: 1.422 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1157, allocations: 0 / 394.2 MB, free: 1.422 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.215e-05/0.1158, allocations: 59.92 kB / 394.3 MB, free: 1.363 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.1161, allocations: 11.8 kB / 394.3 MB, free: 1.355 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.1172, allocations: 0.6409 MB / 395 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.1176, allocations: 0.7317 MB / 395.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.827e-05/0.1176, allocations: 19.38 kB / 395.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1176, allocations: 0 / 395.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of Templates: time 0.0035/0.1211, allocations: 1.71 MB / 397.4 MB, free: 14.19 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.makefile (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)