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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 103.4 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002528/0.002528, allocations: 188.6 kB / 19.4 MB, free: 3.66 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.666/1.666, allocations: 207.6 MB / 229.8 MB, free: 4.254 MB / 174.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.05172/0.05172, allocations: 8.21 MB / 289.9 MB, free: 8.258 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.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.002269/0.002269, allocations: 71.84 kB / 405.2 MB, free: 1.465 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.3029, allocations: 50.89 MB / 456.1 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003665/0.3066, allocations: 1.953 MB / 458.1 MB, free: 2.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000461/0.307, allocations: 241.2 kB / 458.3 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.862e-05/0.3071, allocations: 3.281 kB / 458.3 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.64e-05/0.3072, allocations: 27.91 kB / 458.3 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.522e-05/0.3073, allocations: 41.42 kB / 458.4 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00024/0.3075, allocations: 55.67 kB / 458.4 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001974/0.3077, allocations: 188.4 kB / 458.6 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002008/0.3079, allocations: 70.64 kB / 458.7 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.583e-05/0.308, allocations: 70.41 kB / 458.7 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.689e-05/0.3081, allocations: 78.72 kB / 458.8 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.256e-05/0.3081, allocations: 18.41 kB / 458.8 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.277e-05/0.3081, allocations: 18.16 kB / 458.9 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.422e-05/0.3082, allocations: 46.03 kB / 458.9 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.445e-05/0.3083, allocations: 89.53 kB / 459 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001994/0.3085, allocations: 204 kB / 459.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3085, allocations: 1.438 kB / 459.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.3085, allocations: 4 kB / 459.2 MB, free: 1.465 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.3085, allocations: 0 / 459.2 MB, free: 1.465 MB / 318.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.000582/0.309, allocations: 462.2 kB / 459.6 MB, free: 1.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.3091, allocations: 17.88 kB / 459.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.849e-05/0.3091, allocations: 53.2 kB / 459.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.908e-05/0.3092, allocations: 20.67 kB / 459.7 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.254e-05/0.3092, allocations: 177.7 kB / 459.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.3093, allocations: 24.09 kB / 459.9 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.475e-05/0.3093, allocations: 20.92 kB / 459.9 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002546/0.3096, allocations: 172.9 kB / 460.1 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.3096, allocations: 3.938 kB / 460.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.112e-05/0.3096, allocations: 15.02 kB / 460.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.3096, allocations: 3.25 kB / 460.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001701/0.3098, allocations: 108.5 kB / 460.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009467/0.3107, allocations: 0.6985 MB / 460.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003817/0.3111, allocations: 221.5 kB / 461.2 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002041/0.3113, allocations: 81.75 kB / 461.2 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.3113, allocations: 5.344 kB / 461.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002553/0.3116, allocations: 96.75 kB / 461.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.403e-06/0.3116, allocations: 0 / 461.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001017/0.3126, allocations: 0.5138 MB / 461.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/0.3127, allocations: 52.62 kB / 461.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001163/0.3128, allocations: 127.1 kB / 462 MB, free: 15.01 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.3128, allocations: 26.95 kB / 462.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.33e-05/0.3129, allocations: 135.8 kB / 462.2 MB, free: 14.85 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.676e-05/0.3129, allocations: 74.75 kB / 462.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.09e-05/0.313, allocations: 41.44 kB / 462.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3132, allocations: 326.5 kB / 462.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.399e-05/0.3133, allocations: 48.59 kB / 462.7 MB, free: 14.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001386/0.3134, allocations: 103.7 kB / 462.8 MB, free: 14.31 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002471/0.3137, allocations: 168.6 kB / 462.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.3137, allocations: 11.88 kB / 462.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003138/0.314, allocations: 201.6 kB / 463.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.314, allocations: 5.5 kB / 463.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.314, allocations: 1.375 kB / 463.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.314, allocations: 4.125 kB / 463.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001854/0.3142, allocations: 47.8 kB / 463.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.3142, allocations: 2.75 kB / 463.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.498e-05/0.3143, allocations: 10.97 kB / 463.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.32e-05/0.3143, allocations: 22.8 kB / 463.2 MB, free: 14.03 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.000138/0.3144, allocations: 139.3 kB / 463.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.24e-05/0.3145, allocations: 12.02 kB / 463.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.702e-05/0.3145, allocations: 15.59 kB / 463.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.3145, allocations: 1.375 kB / 463.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.3145, allocations: 1.375 kB / 463.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.3145, allocations: 0 / 463.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007518/0.3153, allocations: 0.5172 MB / 463.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3153, allocations: 1.094 kB / 463.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001838/0.3155, allocations: 33.33 kB / 464 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.3155, allocations: 1 kB / 464 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.3155, allocations: 6.469 kB / 464 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.3155, allocations: 1.188 kB / 464 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3155, allocations: 0 / 464 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004033/0.3159, allocations: 311 kB / 464.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.705e-05/0.3159, allocations: 83.69 kB / 464.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.333e-05/0.316, allocations: 1.406 kB / 464.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.787e-05/0.316, allocations: 5.031 kB / 464.4 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.718e-05/0.3161, allocations: 13.06 kB / 464.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.3161, allocations: 12.55 kB / 464.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.345e-05/0.3162, allocations: 94.2 kB / 464.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3162, allocations: 3.938 kB / 464.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002894/0.3165, allocations: 36.81 kB / 464.5 MB, free: 12.98 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.0008268/0.3173, allocations: 0.8429 MB / 465.4 MB, free: 12.22 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002516/0.3175, allocations: 128.1 kB / 465.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3175, allocations: 0 / 465.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.569e-05/0.3176, allocations: 60.48 kB / 465.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002469/0.3179, allocations: 10.69 kB / 465.5 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002449/0.3203, allocations: 2.088 MB / 467.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003895/0.3207, allocations: 0.7176 MB / 468.4 MB, free: 9.609 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.749e-05/0.3208, allocations: 18.33 kB / 468.4 MB, free: 9.602 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.739e-05/0.3209, allocations: 51.23 kB / 468.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3209, allocations: 0 / 468.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02646/0.3473, allocations: 2.796 MB / 471.2 MB, free: 8.062 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.167/8.514, allocations: 18.03 kB / 471.2 MB, free: 8.051 MB / 334.1 MB " [Timeout remaining time 651] (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: 11.173382599838078] Failed to read output from testmodel.py, exit status != 0: 8.589338331017643 8.614845736 8.302250248 Calling exit ...