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: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold",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.001136/0.001136, 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.001132/0.001132, allocations: 189.8 kB / 16.13 MB, free: 6.66 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.323/1.323, allocations: 205.1 MB / 222 MB, free: 4.758 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03873/0.03873, allocations: 8.11 MB / 277.4 MB, free: 13.38 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.001277/0.001277, allocations: 63.91 kB / 336.6 MB, free: 26.85 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07329/0.07458, allocations: 48.3 MB / 384.9 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003013/0.07763, allocations: 1.996 MB / 386.9 MB, free: 8.484 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004707/0.07812, allocations: 235.2 kB / 387.1 MB, free: 8.254 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.095e-05/0.07823, allocations: 4 kB / 387.1 MB, free: 8.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.907e-05/0.0783, allocations: 15.84 kB / 387.2 MB, free: 8.234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.07844, allocations: 35.75 kB / 387.2 MB, free: 8.199 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002193/0.07867, allocations: 43.91 kB / 387.2 MB, free: 8.156 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001719/0.07885, allocations: 187.2 kB / 387.4 MB, free: 7.973 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001754/0.07903, allocations: 78.62 kB / 387.5 MB, free: 7.895 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.478e-05/0.07911, allocations: 59.8 kB / 387.6 MB, free: 7.836 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.919e-05/0.07922, allocations: 83.67 kB / 387.6 MB, free: 7.754 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.137e-05/0.07925, allocations: 19.94 kB / 387.7 MB, free: 7.734 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.023e-05/0.07929, allocations: 12 kB / 387.7 MB, free: 7.723 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.457e-05/0.07935, allocations: 35.84 kB / 387.7 MB, free: 7.688 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.278e-05/0.07945, allocations: 87.59 kB / 387.8 MB, free: 7.602 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001945/0.07965, allocations: 195.6 kB / 388 MB, free: 7.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.07966, allocations: 4 kB / 388 MB, free: 7.406 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.07966, allocations: 0 / 388 MB, free: 7.406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.279e-06/0.07968, allocations: 4 kB / 388 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.0005897/0.08027, allocations: 459.4 kB / 388.4 MB, free: 6.898 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.08031, allocations: 8.031 kB / 388.4 MB, free: 6.891 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.14e-05/0.08037, allocations: 50.73 kB / 388.5 MB, free: 6.832 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.356e-05/0.08042, allocations: 24.75 kB / 388.5 MB, free: 6.809 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.08054, allocations: 184.1 kB / 388.7 MB, free: 6.59 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.08056, allocations: 12.75 kB / 388.7 MB, free: 6.578 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.119e-05/0.08061, allocations: 28.36 kB / 388.7 MB, free: 6.551 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002618/0.08088, allocations: 172.9 kB / 388.9 MB, free: 6.379 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.0809, allocations: 7.875 kB / 388.9 MB, free: 6.371 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.08092, allocations: 4 kB / 388.9 MB, free: 6.367 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.08094, allocations: 8 kB / 388.9 MB, free: 6.359 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002001/0.08114, allocations: 111.7 kB / 389 MB, free: 6.25 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000904/0.08205, allocations: 0.6987 MB / 389.7 MB, free: 5.484 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002957/0.08236, allocations: 231.6 kB / 390 MB, free: 5.23 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.08254, allocations: 96.81 kB / 390 MB, free: 5.133 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.206e-05/0.08256, allocations: 4 kB / 390.1 MB, free: 5.129 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001699/0.08274, allocations: 99.33 kB / 390.2 MB, free: 5.023 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.522e-06/0.08275, allocations: 0 / 390.2 MB, free: 5.023 MB / 286.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007834/0.08354, allocations: 0.5077 MB / 390.7 MB, free: 4.465 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/0.08358, allocations: 55.41 kB / 390.7 MB, free: 4.398 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.302e-05/0.08367, allocations: 126 kB / 390.8 MB, free: 4.262 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.401e-05/0.08372, allocations: 29.7 kB / 390.9 MB, free: 4.227 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.135e-05/0.08379, allocations: 136 kB / 391 MB, free: 4.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.418e-05/0.08384, allocations: 63.09 kB / 391.1 MB, free: 4.027 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.929e-05/0.0839, allocations: 45.7 kB / 391.1 MB, free: 3.977 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.08407, allocations: 322.8 kB / 391.4 MB, free: 3.652 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.521e-05/0.08415, allocations: 47.98 kB / 391.5 MB, free: 3.605 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001112/0.08426, allocations: 111.8 kB / 391.6 MB, free: 3.473 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001896/0.08446, allocations: 162.7 kB / 391.7 MB, free: 3.289 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.08447, allocations: 7.938 kB / 391.7 MB, free: 3.281 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000264/0.08474, allocations: 205.5 kB / 391.9 MB, free: 3.074 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.08476, allocations: 8 kB / 391.9 MB, free: 3.066 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.08477, allocations: 0 / 391.9 MB, free: 3.066 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.08479, allocations: 4 kB / 392 MB, free: 3.062 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.08497, allocations: 55.84 kB / 392 MB, free: 3.008 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.08499, allocations: 4 kB / 392 MB, free: 3.004 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.439e-05/0.08506, allocations: 8 kB / 392 MB, free: 2.996 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.08507, allocations: 4 kB / 392 MB, free: 2.992 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.0001008/0.08518, allocations: 141.8 kB / 392.2 MB, free: 2.844 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.046e-05/0.08521, allocations: 15.88 kB / 392.2 MB, free: 2.828 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.331e-05/0.08525, allocations: 16.83 kB / 392.2 MB, free: 2.809 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.08526, allocations: 7.938 kB / 392.2 MB, free: 2.801 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.08527, allocations: 3.984 kB / 392.2 MB, free: 2.797 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.08528, allocations: 0 / 392.2 MB, free: 2.797 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005605/0.08585, allocations: 0.5099 MB / 392.7 MB, free: 2.23 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.08586, allocations: 0 / 392.7 MB, free: 2.23 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000178/0.08605, allocations: 51.91 kB / 392.8 MB, free: 2.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.08606, allocations: 0 / 392.8 MB, free: 2.18 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.08608, allocations: 8 kB / 392.8 MB, free: 2.172 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.08608, allocations: 0 / 392.8 MB, free: 2.172 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.08609, allocations: 0 / 392.8 MB, free: 2.172 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003081/0.0864, allocations: 298.1 kB / 393.1 MB, free: 1.867 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.748e-05/0.08645, allocations: 88.95 kB / 393.2 MB, free: 1.762 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.08647, allocations: 4 kB / 393.2 MB, free: 1.758 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.325e-05/0.08655, allocations: 8 kB / 393.2 MB, free: 1.75 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.231e-05/0.08659, allocations: 19.88 kB / 393.2 MB, free: 1.73 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.186e-06/0.0866, allocations: 0 / 393.2 MB, free: 1.73 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.061e-05/0.08666, allocations: 99.02 kB / 393.3 MB, free: 1.637 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.08666, allocations: 0 / 393.3 MB, free: 1.637 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002581/0.08693, allocations: 40 kB / 393.3 MB, free: 1.598 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.0005192/0.08745, allocations: 0.8294 MB / 394.1 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002064/0.08767, allocations: 142 kB / 394.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.08768, allocations: 0 / 394.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.929e-05/0.08776, allocations: 63.81 kB / 394.3 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002159/0.08798, allocations: 12 kB / 394.4 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.08998, allocations: 2.15 MB / 396.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.09031, allocations: 0.732 MB / 397.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.859e-05/0.09037, allocations: 13.42 kB / 397.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.064e-05/0.09044, allocations: 47.42 kB / 397.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.09045, allocations: 0 / 397.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01098/0.1014, allocations: 2.553 MB / 399.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002693/0.1017, allocations: 229.8 kB / 400.1 MB, free: 10.72 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.751/1.853, allocations: 0 / 400.1 MB, free: 10.72 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1)