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.0007941/0.0007941, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008283/0.0008283, 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.8923/0.8923, allocations: 158.6 MB / 184.2 MB, free: 3.043 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.03566/0.03566, allocations: 6.414 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.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: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 359.8 MB, free: 4.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.131e-05/3.307e-05, allocations: 2.281 kB / 359.8 MB, free: 4.395 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.002698/0.002731, allocations: 1.829 MB / 361.6 MB, free: 2.547 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003734/0.003105, allocations: 147.5 kB / 361.8 MB, free: 2.402 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.123e-05/0.003176, allocations: 4 kB / 361.8 MB, free: 2.398 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.689e-05/0.003233, allocations: 31.72 kB / 361.8 MB, free: 2.367 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.41e-05/0.003307, allocations: 39.58 kB / 361.9 MB, free: 2.328 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000238/0.003545, allocations: 39.94 kB / 361.9 MB, free: 2.289 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001507/0.003696, allocations: 183.2 kB / 362.1 MB, free: 2.109 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.003867, allocations: 61.98 kB / 362.1 MB, free: 2.047 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.058e-05/0.003947, allocations: 107.8 kB / 362.2 MB, free: 1.941 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.565e-05/0.004033, allocations: 47.88 kB / 362.3 MB, free: 1.895 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.007e-05/0.004073, allocations: 16 kB / 362.3 MB, free: 1.879 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.739e-05/0.00409, allocations: 16 kB / 362.3 MB, free: 1.863 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.385e-05/0.004114, allocations: 35.91 kB / 362.4 MB, free: 1.828 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.783e-05/0.004152, allocations: 67.83 kB / 362.4 MB, free: 1.762 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001361/0.004288, allocations: 183.5 kB / 362.6 MB, free: 1.582 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.004292, allocations: 0 / 362.6 MB, free: 1.582 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.004293, allocations: 0 / 362.6 MB, free: 1.582 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.004299, allocations: 4 kB / 362.6 MB, free: 1.578 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0003896/0.004688, allocations: 377.7 kB / 363 MB, free: 1.176 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.004739, allocations: 11.98 kB / 363 MB, free: 1.164 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.367e-05/0.004783, allocations: 54.73 kB / 363 MB, free: 1.102 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.659e-05/0.004819, allocations: 20.84 kB / 363.1 MB, free: 1.082 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.993e-05/0.004909, allocations: 133.5 kB / 363.2 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.004929, allocations: 20.31 kB / 363.2 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.435e-05/0.004963, allocations: 16.38 kB / 363.2 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002231/0.005186, allocations: 150.2 kB / 363.4 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.005203, allocations: 4.188 kB / 363.4 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.00522, allocations: 4.375 kB / 363.4 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.926e-06/0.005229, allocations: 8.125 kB / 363.4 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001259/0.005355, allocations: 103.9 kB / 363.5 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007816/0.006136, allocations: 0.5797 MB / 364.1 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003738/0.00651, allocations: 134.5 kB / 364.2 MB, free: 15.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001554/0.006665, allocations: 88.67 kB / 364.3 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.006685, allocations: 3.938 kB / 364.3 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.006714, allocations: 38.56 kB / 364.3 MB, free: 15.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.114e-06/0.006716, allocations: 0 / 364.3 MB, free: 15.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007849/0.007501, allocations: 404.3 kB / 364.7 MB, free: 15.28 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/0.007539, allocations: 55.39 kB / 364.8 MB, free: 15.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.566e-05/0.007615, allocations: 121.8 kB / 364.9 MB, free: 15.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.007628, allocations: 29.7 kB / 364.9 MB, free: 15.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.662e-05/0.007684, allocations: 136.2 kB / 365.1 MB, free: 14.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.165e-05/0.007716, allocations: 59.48 kB / 365.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.497e-05/0.007761, allocations: 37.72 kB / 365.2 MB, free: 14.81 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.577e-05/0.007837, allocations: 326.8 kB / 365.5 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.198e-05/0.007889, allocations: 39.98 kB / 365.5 MB, free: 14.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.267e-05/0.007971, allocations: 95.27 kB / 365.6 MB, free: 14.33 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001299/0.008101, allocations: 148.6 kB / 365.7 MB, free: 14.17 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.008102, allocations: 0 / 365.7 MB, free: 14.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0001772/0.00828, allocations: 177.5 kB / 365.9 MB, free: 13.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.008292, allocations: 4 kB / 365.9 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.008298, allocations: 3.984 kB / 365.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.008312, allocations: 7.938 kB / 365.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.008422, allocations: 44.08 kB / 366 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.008428, allocations: 8 kB / 366 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.399e-05/0.008462, allocations: 4 kB / 366 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.00847, allocations: 8 kB / 366 MB, free: 13.91 MB / 298.7 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 8.247e-05/0.008552, allocations: 133.7 kB / 366.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.02e-05/0.008572, allocations: 11.94 kB / 366.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.945e-05/0.008602, allocations: 12.78 kB / 366.2 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.008605, allocations: 4 kB / 366.2 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.00861, allocations: 0 / 366.2 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.008614, allocations: 0 / 366.2 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004658/0.00908, allocations: 455.2 kB / 366.6 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.009082, allocations: 0 / 366.6 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.009198, allocations: 47.97 kB / 366.7 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.009201, allocations: 0 / 366.7 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.009212, allocations: 3.938 kB / 366.7 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.009214, allocations: 0 / 366.7 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.009219, allocations: 4.078 kB / 366.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002687/0.009487, allocations: 277.2 kB / 366.9 MB, free: 12.92 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.192e-05/0.009499, allocations: 7.906 kB / 366.9 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.009518, allocations: 7.938 kB / 366.9 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.8e-05/0.009556, allocations: 8 kB / 367 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.204e-05/0.009578, allocations: 12.02 kB / 367 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/0.009584, allocations: 7.938 kB / 367 MB, free: 12.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.426e-05/0.009629, allocations: 95.27 kB / 367.1 MB, free: 12.78 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009629, allocations: 0 / 367.1 MB, free: 12.78 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001949/0.009824, allocations: 36 kB / 367.1 MB, free: 12.75 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.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.0005185/0.01034, allocations: 0.7983 MB / 367.9 MB, free: 11.92 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000188/0.01053, allocations: 115.4 kB / 368 MB, free: 11.81 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.01053, allocations: 4.062 kB / 368 MB, free: 11.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.035e-05/0.01058, allocations: 51.3 kB / 368.1 MB, free: 11.76 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001972/0.01078, allocations: 15.94 kB / 368.1 MB, free: 11.74 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.01237, allocations: 1.908 MB / 370 MB, free: 9.719 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.942e-05/0.01246, allocations: 107.4 kB / 370.1 MB, free: 9.594 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.773e-05/0.0125, allocations: 17.14 kB / 370.1 MB, free: 9.578 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.637e-05/0.01256, allocations: 40.48 kB / 370.2 MB, free: 9.539 MB / 298.7 MB Notification: Performance of SimCode: time 9.32e-07/0.01256, allocations: 4 kB / 370.2 MB, free: 9.535 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01839/0.03095, allocations: 3.189 MB / 373.3 MB, free: 6.402 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.21/7.241, allocations: 19.69 kB / 373.4 MB, free: 6.383 MB / 298.7 MB " [Timeout remaining time 653] (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: 9.044746848754585] Failed to read output from testmodel.py, exit status != 0: 7.321412129327655 7.33603027 7.329890888 Calling exit ...