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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 97.88 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002157/0.002157, allocations: 214.9 kB / 23.03 MB, free: 4.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.374/1.374, allocations: 207.7 MB / 233.9 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04883/0.04883, allocations: 8.199 MB / 294.3 MB, free: 13.46 MB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.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.002181/0.002181, allocations: 72.09 kB / 411.2 MB, free: 46.85 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07966/0.08184, allocations: 50.93 MB / 462.2 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003151/0.08499, allocations: 1.867 MB / 464 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004736/0.08547, allocations: 235.9 kB / 464.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.757e-05/0.08553, allocations: 4 kB / 464.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.099e-05/0.08561, allocations: 27.72 kB / 464.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001006/0.08571, allocations: 47.61 kB / 464.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002182/0.08592, allocations: 47.89 kB / 464.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002036/0.08613, allocations: 187.2 kB / 464.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001914/0.08632, allocations: 78.52 kB / 464.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.079e-05/0.0864, allocations: 75.78 kB / 464.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001178/0.08652, allocations: 79.69 kB / 464.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.193e-05/0.08656, allocations: 20 kB / 464.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.028e-05/0.08659, allocations: 16 kB / 464.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.615e-05/0.08664, allocations: 43.84 kB / 464.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.08674, allocations: 83.72 kB / 464.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002378/0.08698, allocations: 199.2 kB / 465.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.08698, allocations: 4 kB / 465.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.08698, allocations: 0 / 465.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.08699, allocations: 0 / 465.1 MB, free: 10.28 MB / 334.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.0006509/0.08764, allocations: 390 kB / 465.5 MB, free: 9.859 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.08768, allocations: 15.98 kB / 465.5 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.558e-05/0.0877, allocations: 4.562 kB / 465.5 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.877e-05/0.08775, allocations: 50.73 kB / 465.6 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.722e-05/0.08779, allocations: 36.73 kB / 465.6 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001169/0.08791, allocations: 126.3 kB / 465.8 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.08793, allocations: 12.75 kB / 465.8 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.726e-05/0.08798, allocations: 28.31 kB / 465.8 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000302/0.08828, allocations: 168.9 kB / 466 MB, free: 9.387 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.08829, allocations: 0 / 466 MB, free: 9.387 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.023e-05/0.08831, allocations: 8 kB / 466 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.08832, allocations: 4 kB / 466 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001914/0.08851, allocations: 107.3 kB / 466.1 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.08956, allocations: 0.5949 MB / 466.7 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.08988, allocations: 138.5 kB / 466.8 MB, free: 8.477 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001879/0.09007, allocations: 80.81 kB / 466.9 MB, free: 8.395 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.09008, allocations: 4 kB / 466.9 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001848/0.09027, allocations: 91.36 kB / 467 MB, free: 8.289 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.502e-06/0.09027, allocations: 0 / 467 MB, free: 8.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008804/0.09115, allocations: 449.2 kB / 467.4 MB, free: 7.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.0912, allocations: 59.34 kB / 467.5 MB, free: 7.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.09131, allocations: 126.1 kB / 467.6 MB, free: 7.613 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.237e-05/0.09133, allocations: 29.7 kB / 467.6 MB, free: 7.578 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.686e-05/0.09142, allocations: 140.3 kB / 467.8 MB, free: 7.434 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.113e-05/0.09148, allocations: 67.38 kB / 467.8 MB, free: 7.367 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.642e-05/0.09154, allocations: 45.7 kB / 467.9 MB, free: 7.316 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.09169, allocations: 322.8 kB / 468.2 MB, free: 6.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.399e-05/0.09177, allocations: 47.98 kB / 468.2 MB, free: 6.945 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001373/0.09191, allocations: 103.6 kB / 468.3 MB, free: 6.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00023/0.09214, allocations: 174.6 kB / 468.5 MB, free: 6.625 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.09214, allocations: 0 / 468.5 MB, free: 6.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003018/0.09244, allocations: 201.6 kB / 468.7 MB, free: 6.422 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.09246, allocations: 8.031 kB / 468.7 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.09246, allocations: 4 kB / 468.7 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.09248, allocations: 4 kB / 468.7 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001935/0.09267, allocations: 55.91 kB / 468.8 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.09268, allocations: 3.938 kB / 468.8 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.075e-05/0.09274, allocations: 4 kB / 468.8 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.09276, allocations: 12 kB / 468.8 MB, free: 6.332 MB / 334.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.0001226/0.09288, allocations: 129.8 kB / 468.9 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.367e-05/0.09291, allocations: 19.88 kB / 468.9 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.691e-05/0.09295, allocations: 20.78 kB / 469 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.09296, allocations: 4 kB / 469 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.09296, allocations: 0 / 469 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.09297, allocations: 3.984 kB / 469 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006326/0.0936, allocations: 465.6 kB / 469.4 MB, free: 5.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.0936, allocations: 3.938 kB / 469.4 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001953/0.0938, allocations: 43.97 kB / 469.5 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.0938, allocations: 4 kB / 469.5 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.09381, allocations: 0 / 469.5 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.09381, allocations: 0 / 469.5 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.09382, allocations: 4 kB / 469.5 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003779/0.09419, allocations: 309.6 kB / 469.8 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.421e-05/0.09421, allocations: 7.953 kB / 469.8 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.466e-05/0.09423, allocations: 8 kB / 469.8 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.423e-05/0.09431, allocations: 0 / 469.8 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.869e-05/0.09434, allocations: 19.89 kB / 469.8 MB, free: 5.234 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.09436, allocations: 8 kB / 469.8 MB, free: 5.227 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.147e-05/0.09442, allocations: 99.14 kB / 469.9 MB, free: 5.133 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.09442, allocations: 0 / 469.9 MB, free: 5.133 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002658/0.09468, allocations: 36 kB / 470 MB, free: 5.098 MB / 334.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.0006862/0.09537, allocations: 0.8418 MB / 470.8 MB, free: 4.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002375/0.09561, allocations: 131.7 kB / 470.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.09561, allocations: 0 / 470.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.721e-05/0.0957, allocations: 53.8 kB / 471 MB, free: 4.051 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002313/0.09593, allocations: 8 kB / 471 MB, free: 4.043 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002384/0.09831, allocations: 2.121 MB / 473.1 MB, free: 1.793 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001149/0.09843, allocations: 115.9 kB / 473.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.868e-05/0.09848, allocations: 17.41 kB / 473.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.255e-05/0.09856, allocations: 43.42 kB / 473.3 MB, free: 1.605 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.09856, allocations: 0 / 473.3 MB, free: 1.605 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02303/0.1216, allocations: 2.987 MB / 476.3 MB, free: 14.67 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.19, allocations: 15.48 kB / 476.3 MB, free: 14.66 MB / 350.1 MB " [Timeout remaining time 649] (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 --stepSize=0.004 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.752647617016919] Failed to read output from testmodel.py, exit status != 0: 11.347542398027144 11.375430807 11.283719915 Calling exit ...