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.001392/0.001392, allocations: 113 kB / 18.94 MB, free: 2.934 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.002151/0.002151, allocations: 207.8 kB / 22.25 MB, free: 5.082 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.816/1.816, allocations: 207.6 MB / 233 MB, free: 10.01 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.05214/0.05214, allocations: 8.201 MB / 293.5 MB, free: 13.65 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="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: 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.002447/0.002447, allocations: 81.48 kB / 410.5 MB, free: 46.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08258/0.08502, allocations: 50.94 MB / 461.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.004115/0.08914, allocations: 1.941 MB / 463.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007214/0.08986, allocations: 243.9 kB / 463.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001645/0.09002, allocations: 4 kB / 463.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.09014, allocations: 27.73 kB / 463.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001964/0.09034, allocations: 47.56 kB / 463.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.09064, allocations: 47.94 kB / 463.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003254/0.09096, allocations: 191.2 kB / 463.9 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000255/0.09122, allocations: 74.52 kB / 464 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001854/0.0914, allocations: 75.78 kB / 464 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001905/0.09159, allocations: 75.69 kB / 464.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.461e-05/0.09164, allocations: 20 kB / 464.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.638e-05/0.09169, allocations: 16 kB / 464.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.046e-05/0.09175, allocations: 47.84 kB / 464.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.09187, allocations: 95.53 kB / 464.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002812/0.09215, allocations: 207.2 kB / 464.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.09215, allocations: 0 / 464.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.09215, allocations: 0 / 464.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.09217, allocations: 3.938 kB / 464.5 MB, free: 10.37 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.0007114/0.09288, allocations: 386 kB / 464.9 MB, free: 9.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.09293, allocations: 11.98 kB / 464.9 MB, free: 9.941 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.659e-05/0.09299, allocations: 54.73 kB / 464.9 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.955e-05/0.09304, allocations: 20.8 kB / 464.9 MB, free: 9.859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001344/0.09318, allocations: 134.3 kB / 465.1 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.708e-05/0.09321, allocations: 12.75 kB / 465.1 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.535e-05/0.09327, allocations: 28.27 kB / 465.1 MB, free: 9.664 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003094/0.09358, allocations: 165.2 kB / 465.3 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/0.0936, allocations: 3.938 kB / 465.3 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.999e-05/0.09362, allocations: 12 kB / 465.3 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.09363, allocations: 4 kB / 465.3 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002073/0.09384, allocations: 111.6 kB / 465.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001222/0.09506, allocations: 0.6339 MB / 466 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000357/0.09542, allocations: 138.5 kB / 466.2 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/0.09563, allocations: 76.81 kB / 466.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.09565, allocations: 4 kB / 466.3 MB, free: 8.453 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002772/0.09592, allocations: 103.3 kB / 466.4 MB, free: 8.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.523e-06/0.09593, allocations: 0 / 466.4 MB, free: 8.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009648/0.09689, allocations: 448 kB / 466.8 MB, free: 7.871 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.662e-05/0.09695, allocations: 55.41 kB / 466.8 MB, free: 7.805 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.09708, allocations: 118.1 kB / 467 MB, free: 7.676 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.909e-05/0.09711, allocations: 29.7 kB / 467 MB, free: 7.641 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.917e-05/0.09721, allocations: 144.3 kB / 467.1 MB, free: 7.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.979e-05/0.09728, allocations: 71.41 kB / 467.2 MB, free: 7.422 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.017e-05/0.09735, allocations: 45.7 kB / 467.2 MB, free: 7.371 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.09751, allocations: 322.8 kB / 467.6 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.01e-05/0.0976, allocations: 43.98 kB / 467.6 MB, free: 7.004 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.09774, allocations: 107.6 kB / 467.7 MB, free: 6.875 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002309/0.09797, allocations: 170.6 kB / 467.9 MB, free: 6.684 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.09797, allocations: 3.938 kB / 467.9 MB, free: 6.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003097/0.09828, allocations: 201.3 kB / 468.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.0983, allocations: 8 kB / 468.1 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.09831, allocations: 0 / 468.1 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.09832, allocations: 4 kB / 468.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.09856, allocations: 52.14 kB / 468.1 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.09857, allocations: 11.98 kB / 468.2 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.039e-05/0.09864, allocations: 8 kB / 468.2 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.09866, allocations: 8 kB / 468.2 MB, free: 6.387 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.0001302/0.09879, allocations: 129.8 kB / 468.3 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.378e-05/0.09881, allocations: 15.83 kB / 468.3 MB, free: 6.234 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.176e-05/0.09886, allocations: 20.78 kB / 468.3 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.09887, allocations: 3.938 kB / 468.3 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.09887, allocations: 0 / 468.3 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.09888, allocations: 7.984 kB / 468.3 MB, free: 6.199 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006919/0.09957, allocations: 484.1 kB / 468.8 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.09957, allocations: 0 / 468.8 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/0.09976, allocations: 43.91 kB / 468.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.09976, allocations: 0 / 468.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.09979, allocations: 8 kB / 468.9 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.09979, allocations: 0 / 468.9 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.09979, allocations: 0 / 468.9 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004321/0.1002, allocations: 307.9 kB / 469.2 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.698e-05/0.1002, allocations: 3.953 kB / 469.2 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/0.1003, allocations: 8 kB / 469.2 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.394e-05/0.1003, allocations: 0 / 469.2 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.374e-05/0.1004, allocations: 23.95 kB / 469.2 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.1004, allocations: 4 kB / 469.2 MB, free: 5.273 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.706e-05/0.1005, allocations: 99.14 kB / 469.3 MB, free: 5.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1005, allocations: 0 / 469.3 MB, free: 5.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002969/0.1008, allocations: 44 kB / 469.3 MB, free: 5.137 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.0007986/0.1016, allocations: 0.8303 MB / 470.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002788/0.1018, allocations: 131.7 kB / 470.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/0.1018, allocations: 8.438 kB / 470.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.1019, allocations: 53.8 kB / 470.4 MB, free: 4.094 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002451/0.1022, allocations: 8 kB / 470.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002744/0.1049, allocations: 2.109 MB / 472.5 MB, free: 1.848 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.1053, allocations: 0.7162 MB / 473.2 MB, free: 1.105 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.305e-05/0.1054, allocations: 17.42 kB / 473.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.84e-05/0.1055, allocations: 55.41 kB / 473.3 MB, free: 1.035 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1055, allocations: 0 / 473.3 MB, free: 1.035 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03264/0.1381, allocations: 3.008 MB / 476.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.18, allocations: 3.938 kB / 476.3 MB, free: 14.09 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: 14.258350455900654] Failed to read output from testmodel.py, exit status != 0: 11.289665351156145 11.313262711 11.217917928 Calling exit ...