Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.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.001748/0.001748, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002057/0.002057, allocations: 216.2 kB / 22.26 MB, free: 5.125 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.817/1.817, allocations: 207.6 MB / 233 MB, free: 9.98 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.05131/0.05131, allocations: 8.189 MB / 293.5 MB, free: 13.66 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.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="me",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.002343/0.002343, allocations: 81.2 kB / 410.4 MB, free: 46.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08006/0.0824, allocations: 50.94 MB / 461.4 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003404/0.08581, allocations: 1.895 MB / 463.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004079/0.08621, allocations: 147.5 kB / 463.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.534e-05/0.08631, allocations: 4 kB / 463.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.242e-05/0.08638, allocations: 23.8 kB / 463.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001178/0.0865, allocations: 47.55 kB / 463.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001812/0.08668, allocations: 39.95 kB / 463.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002207/0.0869, allocations: 171.3 kB / 463.7 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.0871, allocations: 66.14 kB / 463.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.0872, allocations: 67.78 kB / 463.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000133/0.08734, allocations: 75.69 kB / 463.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.217e-05/0.08737, allocations: 20 kB / 463.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.048e-05/0.0874, allocations: 19.94 kB / 463.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.149e-05/0.08744, allocations: 39.86 kB / 464 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.19e-05/0.08753, allocations: 83.66 kB / 464.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002342/0.08777, allocations: 183.3 kB / 464.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.08777, allocations: 4 kB / 464.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.08777, allocations: 0 / 464.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.08778, allocations: 0 / 464.2 MB, free: 10.6 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0006035/0.08838, allocations: 377.6 kB / 464.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.08843, allocations: 15.98 kB / 464.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.34e-05/0.08849, allocations: 50.73 kB / 464.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.303e-05/0.08853, allocations: 20.84 kB / 464.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001315/0.08866, allocations: 134.3 kB / 464.8 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.08868, allocations: 12.38 kB / 464.8 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.787e-05/0.08872, allocations: 24.31 kB / 464.9 MB, free: 9.914 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002802/0.089, allocations: 154.2 kB / 465 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.08902, allocations: 3.938 kB / 465 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.08904, allocations: 7.984 kB / 465 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.08904, allocations: 4 kB / 465 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001943/0.08924, allocations: 111.8 kB / 465.1 MB, free: 9.633 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.09024, allocations: 0.6105 MB / 465.8 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003707/0.09061, allocations: 134.5 kB / 465.9 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001888/0.0908, allocations: 80.81 kB / 466 MB, free: 8.742 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.328e-05/0.09082, allocations: 4 kB / 466 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.09085, allocations: 34.56 kB / 466 MB, free: 8.695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.302e-06/0.09085, allocations: 0 / 466 MB, free: 8.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007899/0.09164, allocations: 408.7 kB / 466.4 MB, free: 8.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.09168, allocations: 51.41 kB / 466.4 MB, free: 8.203 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.09179, allocations: 129.7 kB / 466.6 MB, free: 8.066 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.09181, allocations: 25.7 kB / 466.6 MB, free: 8.035 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.763e-05/0.0919, allocations: 144.1 kB / 466.7 MB, free: 7.891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.891e-05/0.09195, allocations: 51.55 kB / 466.8 MB, free: 7.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.375e-05/0.09201, allocations: 41.7 kB / 466.8 MB, free: 7.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.09215, allocations: 314.8 kB / 467.1 MB, free: 7.477 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.567e-05/0.09224, allocations: 47.97 kB / 467.2 MB, free: 7.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.09235, allocations: 85.08 kB / 467.3 MB, free: 7.328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002012/0.09255, allocations: 152.8 kB / 467.4 MB, free: 7.164 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.09255, allocations: 0 / 467.4 MB, free: 7.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002723/0.09282, allocations: 185.4 kB / 467.6 MB, free: 6.977 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.09284, allocations: 8 kB / 467.6 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.09284, allocations: 0 / 467.6 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.09286, allocations: 4 kB / 467.6 MB, free: 6.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.09304, allocations: 43.92 kB / 467.7 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.09305, allocations: 7.938 kB / 467.7 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.699e-05/0.09311, allocations: 4 kB / 467.7 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.09312, allocations: 12 kB / 467.7 MB, free: 6.898 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.0001193/0.09324, allocations: 133.9 kB / 467.8 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.5e-05/0.09327, allocations: 7.953 kB / 467.8 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.905e-05/0.09332, allocations: 16.78 kB / 467.8 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.09333, allocations: 4 kB / 467.8 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.09333, allocations: 3.938 kB / 467.8 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.09334, allocations: 0 / 467.8 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006555/0.09399, allocations: 462.9 kB / 468.3 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.094, allocations: 3.938 kB / 468.3 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001849/0.09418, allocations: 43.92 kB / 468.3 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.09419, allocations: 0 / 468.3 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.0942, allocations: 3.938 kB / 468.3 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.0942, allocations: 4 kB / 468.3 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.0942, allocations: 4.062 kB / 468.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003562/0.09456, allocations: 272.1 kB / 468.6 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.79e-05/0.09458, allocations: 11.89 kB / 468.6 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.991e-05/0.0946, allocations: 4 kB / 468.6 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.863e-05/0.09467, allocations: 8 kB / 468.6 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.076e-05/0.0947, allocations: 15.97 kB / 468.7 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.57e-06/0.0947, allocations: 0 / 468.7 MB, free: 5.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.568e-05/0.09477, allocations: 95.7 kB / 468.8 MB, free: 5.746 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.09477, allocations: 0 / 468.8 MB, free: 5.746 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000273/0.09504, allocations: 32 kB / 468.8 MB, free: 5.715 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.flange_a.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 Backend phase and start with SimCode phase: time 0.000664/0.0957, allocations: 0.8205 MB / 469.6 MB, free: 4.871 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002111/0.09592, allocations: 111.8 kB / 469.7 MB, free: 4.762 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.09592, allocations: 0 / 469.7 MB, free: 4.762 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.257e-05/0.09599, allocations: 47.92 kB / 469.8 MB, free: 4.715 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002194/0.09621, allocations: 14.67 kB / 469.8 MB, free: 4.703 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/0.0986, allocations: 1.993 MB / 471.8 MB, free: 2.594 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004274/0.09903, allocations: 0.7201 MB / 472.5 MB, free: 1.844 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.283e-05/0.09907, allocations: 17.02 kB / 472.5 MB, free: 1.828 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.63e-05/0.09915, allocations: 43.42 kB / 472.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.09915, allocations: 0 / 472.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.032/0.1311, allocations: 2.788 MB / 475.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.18, allocations: 7.984 kB / 475.3 MB, free: 15.03 MB / 350.1 MB " [Timeout remaining time 649] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.272439450956881] Failed to read output from testmodel.py, exit status != 0: 11.28571280487813 11.307359288 11.216375034 Calling exit ...