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.0008721/0.0008721, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.001325/0.001325, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.8461/0.8461, allocations: 158.6 MB / 184.2 MB, free: 3.047 MB / 170.7 MB " [Timeout remaining time 179] 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.02417/0.02417, allocations: 6.4 MB / 242.9 MB, free: 8.988 MB / 234.7 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="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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.894e-06/1.894e-06, allocations: 0 / 359.8 MB, free: 4.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.238e-05/2.428e-05, allocations: 5.938 kB / 359.8 MB, free: 4.375 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.002245/0.002269, allocations: 1.876 MB / 361.7 MB, free: 2.48 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003767/0.002646, allocations: 239.2 kB / 361.9 MB, free: 2.246 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.691e-05/0.002712, allocations: 4 kB / 361.9 MB, free: 2.242 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.914e-05/0.002772, allocations: 27.72 kB / 362 MB, free: 2.215 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.085e-05/0.002852, allocations: 43.56 kB / 362 MB, free: 2.172 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002348/0.003087, allocations: 55.8 kB / 362.1 MB, free: 2.117 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001216/0.003209, allocations: 199 kB / 362.3 MB, free: 1.922 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.00336, allocations: 74.36 kB / 362.3 MB, free: 1.852 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.783e-05/0.003437, allocations: 107.8 kB / 362.4 MB, free: 1.746 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.989e-05/0.003517, allocations: 55.81 kB / 362.5 MB, free: 1.691 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.275e-05/0.00355, allocations: 20 kB / 362.5 MB, free: 1.672 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.889e-05/0.003569, allocations: 20 kB / 362.5 MB, free: 1.652 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.134e-05/0.0036, allocations: 35.89 kB / 362.6 MB, free: 1.617 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.756e-05/0.003658, allocations: 75.81 kB / 362.6 MB, free: 1.543 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001805/0.003838, allocations: 203.4 kB / 362.8 MB, free: 1.344 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.003841, allocations: 0 / 362.8 MB, free: 1.344 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.003843, allocations: 0 / 362.8 MB, free: 1.344 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.003851, allocations: 0 / 362.8 MB, free: 1.344 MB / 282.7 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.00047/0.004321, allocations: 386 kB / 363.2 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.004364, allocations: 15.98 kB / 363.2 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.451e-05/0.004399, allocations: 54.73 kB / 363.3 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.602e-05/0.004435, allocations: 24.8 kB / 363.3 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.855e-05/0.004503, allocations: 125.5 kB / 363.4 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.004519, allocations: 12.75 kB / 363.4 MB, free: 0.668 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.153e-05/0.00455, allocations: 28.31 kB / 363.5 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001921/0.004743, allocations: 161.2 kB / 363.6 MB, free: 492 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.004758, allocations: 8.141 kB / 363.6 MB, free: 484 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.253e-05/0.00478, allocations: 4.375 kB / 363.6 MB, free: 480 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.004787, allocations: 8.125 kB / 363.6 MB, free: 472 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.004916, allocations: 119.6 kB / 363.8 MB, free: 352 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007922/0.005709, allocations: 0.5953 MB / 364.4 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002608/0.00597, allocations: 134.5 kB / 364.5 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001447/0.006114, allocations: 88.8 kB / 364.6 MB, free: 15.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.342e-05/0.006128, allocations: 0 / 364.6 MB, free: 15.46 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002118/0.006339, allocations: 95.59 kB / 364.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.894e-06/0.006341, allocations: 0 / 364.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=18): time 0.0007936/0.007135, allocations: 444.1 kB / 365.1 MB, free: 14.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.007175, allocations: 59.33 kB / 365.2 MB, free: 14.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.726e-05/0.007253, allocations: 130 kB / 365.3 MB, free: 14.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.208e-05/0.007265, allocations: 25.7 kB / 365.3 MB, free: 14.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.74e-05/0.007322, allocations: 136.4 kB / 365.4 MB, free: 14.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.611e-05/0.007358, allocations: 67.42 kB / 365.5 MB, free: 14.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001872/0.007545, allocations: 49.7 kB / 365.6 MB, free: 14.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.8e-05/0.007623, allocations: 326.8 kB / 365.9 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.693e-05/0.00768, allocations: 47.92 kB / 365.9 MB, free: 14.02 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.714e-05/0.007768, allocations: 110.8 kB / 366 MB, free: 13.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.007918, allocations: 162.7 kB / 366.2 MB, free: 13.7 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.00792, allocations: 0 / 366.2 MB, free: 13.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000193/0.008113, allocations: 205.4 kB / 366.4 MB, free: 13.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.008128, allocations: 11.12 kB / 366.4 MB, free: 13.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.008135, allocations: 3.938 kB / 366.4 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.008147, allocations: 4 kB / 366.4 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.008269, allocations: 51.91 kB / 366.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.008275, allocations: 4 kB / 366.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.073e-05/0.008316, allocations: 8 kB / 366.5 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.008325, allocations: 8 kB / 366.5 MB, free: 13.41 MB / 298.7 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 7.892e-05/0.008404, allocations: 146 kB / 366.6 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.274e-05/0.008417, allocations: 11.94 kB / 366.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.092e-05/0.008448, allocations: 16.72 kB / 366.7 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.008451, allocations: 4 kB / 366.7 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.008457, allocations: 0 / 366.7 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.00846, allocations: 3.938 kB / 366.7 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004327/0.008893, allocations: 477.5 kB / 367.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.008896, allocations: 4 kB / 367.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.009002, allocations: 39.97 kB / 367.2 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.009005, allocations: 0 / 367.2 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.009016, allocations: 8 kB / 367.2 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.009018, allocations: 4 kB / 367.2 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.009019, allocations: 0 / 367.2 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002518/0.009271, allocations: 303.8 kB / 367.5 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.047e-05/0.009281, allocations: 7.953 kB / 367.5 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.009299, allocations: 7.938 kB / 367.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.042e-05/0.009339, allocations: 4 kB / 367.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.049e-05/0.00937, allocations: 12.02 kB / 367.5 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.009377, allocations: 4 kB / 367.5 MB, free: 12.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.947e-05/0.009416, allocations: 99.27 kB / 367.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009416, allocations: 0 / 367.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000201/0.009617, allocations: 40 kB / 367.6 MB, free: 12.16 MB / 298.7 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.0004185/0.01004, allocations: 0.8359 MB / 368.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001897/0.01023, allocations: 127.8 kB / 368.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.01023, allocations: 0 / 368.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.219e-05/0.01029, allocations: 51.92 kB / 368.7 MB, free: 11.12 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001839/0.01047, allocations: 15.94 kB / 368.7 MB, free: 11.11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/0.01224, allocations: 2.007 MB / 370.7 MB, free: 8.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.684e-05/0.01234, allocations: 112.1 kB / 370.8 MB, free: 8.852 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.409e-05/0.01237, allocations: 13.48 kB / 370.8 MB, free: 8.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.729e-05/0.01244, allocations: 52.48 kB / 370.9 MB, free: 8.785 MB / 298.7 MB Notification: Performance of SimCode: time 6.62e-07/0.01244, allocations: 0 / 370.9 MB, free: 8.785 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/0.03169, allocations: 3.403 MB / 374.3 MB, free: 5.477 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.297/7.329, allocations: 15.72 kB / 374.3 MB, free: 5.461 MB / 298.7 MB " [Timeout remaining time 653] (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: 9.051665359176695] Failed to read output from testmodel.py, exit status != 0: 7.407747493125498 7.416830642 7.4111534390000005 Calling exit ...