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.00176/0.00176, allocations: 97.31 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.002202/0.002202, allocations: 214.9 kB / 23.03 MB, free: 4.926 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.36/1.36, allocations: 207.7 MB / 233.9 MB, free: 9.789 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.04864/0.04864, allocations: 8.192 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.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",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.00214/0.00214, allocations: 69.25 kB / 411.2 MB, free: 46.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07862/0.08076, allocations: 50.94 MB / 462.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003197/0.08396, allocations: 1.817 MB / 464 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003266/0.08428, allocations: 151.5 kB / 464.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.79e-05/0.08435, allocations: 4 kB / 464.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.97e-05/0.08442, allocations: 19.8 kB / 464.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001073/0.08453, allocations: 39.62 kB / 464.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001643/0.08469, allocations: 47.89 kB / 464.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.0849, allocations: 175.2 kB / 464.4 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001904/0.08509, allocations: 70.16 kB / 464.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.611e-05/0.08517, allocations: 63.78 kB / 464.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001203/0.08529, allocations: 75.69 kB / 464.6 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.596e-05/0.08533, allocations: 16 kB / 464.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.157e-05/0.08536, allocations: 20 kB / 464.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.324e-05/0.0854, allocations: 35.86 kB / 464.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.41e-05/0.08549, allocations: 75.7 kB / 464.7 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002463/0.08574, allocations: 187.3 kB / 464.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.08574, allocations: 0 / 464.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.08575, allocations: 4 kB / 464.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.451e-06/0.08575, allocations: 0 / 464.9 MB, free: 10.48 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.000613/0.08636, allocations: 373.7 kB / 465.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.0864, allocations: 11.98 kB / 465.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.658e-05/0.08642, allocations: 4.188 kB / 465.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.927e-05/0.08648, allocations: 62.66 kB / 465.4 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.05e-05/0.08652, allocations: 16.84 kB / 465.4 MB, free: 9.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.08665, allocations: 126.3 kB / 465.5 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.08667, allocations: 16.38 kB / 465.5 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.145e-05/0.08671, allocations: 20.38 kB / 465.5 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.08699, allocations: 149.9 kB / 465.7 MB, free: 9.645 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.08701, allocations: 7.984 kB / 465.7 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/0.08703, allocations: 8 kB / 465.7 MB, free: 9.629 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.08704, allocations: 4 kB / 465.7 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001829/0.08722, allocations: 103.9 kB / 465.8 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009799/0.0882, allocations: 0.5754 MB / 466.4 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003722/0.08857, allocations: 138.4 kB / 466.5 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000193/0.08877, allocations: 84.81 kB / 466.6 MB, free: 8.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.044e-05/0.08878, allocations: 0 / 466.6 MB, free: 8.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.08881, allocations: 38.56 kB / 466.6 MB, free: 8.613 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.785e-06/0.08881, allocations: 3.984 kB / 466.6 MB, free: 8.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.000781/0.08959, allocations: 404.5 kB / 467 MB, free: 8.184 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.043e-05/0.08963, allocations: 55.34 kB / 467.1 MB, free: 8.117 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.08973, allocations: 117.8 kB / 467.2 MB, free: 7.992 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.08975, allocations: 29.7 kB / 467.2 MB, free: 7.957 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.061e-05/0.08983, allocations: 136.1 kB / 467.4 MB, free: 7.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.551e-05/0.08989, allocations: 59.55 kB / 467.4 MB, free: 7.762 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.279e-05/0.08995, allocations: 41.7 kB / 467.5 MB, free: 7.715 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.0901, allocations: 322.8 kB / 467.8 MB, free: 7.391 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.127e-05/0.09017, allocations: 39.98 kB / 467.8 MB, free: 7.352 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.09029, allocations: 93 kB / 467.9 MB, free: 7.242 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002003/0.09049, allocations: 149 kB / 468.1 MB, free: 7.078 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.09049, allocations: 7.938 kB / 468.1 MB, free: 7.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002577/0.09075, allocations: 180.9 kB / 468.2 MB, free: 6.891 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.09077, allocations: 6.656 kB / 468.3 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.09077, allocations: 0 / 468.3 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.09079, allocations: 4 kB / 468.3 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.09098, allocations: 47.91 kB / 468.3 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.09099, allocations: 7.938 kB / 468.3 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.565e-05/0.09104, allocations: 8 kB / 468.3 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.09105, allocations: 8.156 kB / 468.3 MB, free: 6.812 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.00011/0.09116, allocations: 129.8 kB / 468.5 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.188e-05/0.09119, allocations: 7.953 kB / 468.5 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.775e-05/0.09124, allocations: 12.78 kB / 468.5 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.09124, allocations: 4 kB / 468.5 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.09125, allocations: 7.938 kB / 468.5 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.09126, allocations: 3.984 kB / 468.5 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006255/0.09188, allocations: 453.3 kB / 468.9 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.09188, allocations: 0 / 468.9 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001881/0.09207, allocations: 39.98 kB / 469 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.09207, allocations: 0 / 469 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.09209, allocations: 4 kB / 469 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.09209, allocations: 7.922 kB / 469 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.09209, allocations: 4.078 kB / 469 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003487/0.09244, allocations: 271.4 kB / 469.3 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.18e-05/0.09245, allocations: 3.953 kB / 469.3 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.09248, allocations: 8 kB / 469.3 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.777e-05/0.09255, allocations: 0 / 469.3 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.831e-05/0.09258, allocations: 8.031 kB / 469.3 MB, free: 5.785 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.09259, allocations: 12 kB / 469.3 MB, free: 5.773 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.912e-05/0.09265, allocations: 95.64 kB / 469.4 MB, free: 5.68 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.09265, allocations: 0 / 469.4 MB, free: 5.68 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002554/0.09291, allocations: 36 kB / 469.4 MB, free: 5.645 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.0006787/0.09359, allocations: 0.8172 MB / 470.2 MB, free: 4.805 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002306/0.09382, allocations: 111.8 kB / 470.3 MB, free: 4.695 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.09382, allocations: 0 / 470.3 MB, free: 4.695 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.228e-05/0.09389, allocations: 48.23 kB / 470.4 MB, free: 4.648 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002299/0.09412, allocations: 15.94 kB / 470.4 MB, free: 4.633 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002286/0.09641, allocations: 1.993 MB / 472.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001132/0.09652, allocations: 111.2 kB / 472.5 MB, free: 2.395 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.09e-05/0.09656, allocations: 13.08 kB / 472.5 MB, free: 2.383 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.582e-05/0.09664, allocations: 39.42 kB / 472.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of SimCode: time 4.2e-07/0.09664, allocations: 3.938 kB / 472.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02226/0.1189, allocations: 2.777 MB / 475.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/10.95, allocations: 8.094 kB / 475.3 MB, free: 15.6 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: 13.48346853791736] Failed to read output from testmodel.py, exit status != 0: 11.104675235110335 11.120596883 11.031844098 Calling exit ...