Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.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.0008757/0.0008757, 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.0009218/0.0009218, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9404/0.9404, 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.0246/0.0246, allocations: 6.411 MB / 242.9 MB, free: 8.969 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.Architectures.SensorComparison.Examples.FlatSystem_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.186e-06/3.186e-06, allocations: 0 / 359.8 MB, free: 4.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.898e-05/2.216e-05, allocations: 2.281 kB / 359.8 MB, free: 4.531 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.002223/0.002245, allocations: 2.306 MB / 362.1 MB, free: 2.203 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008344/0.00308, allocations: 0.6513 MB / 362.7 MB, free: 1.543 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.003202, allocations: 11.94 kB / 362.8 MB, free: 1.531 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.00335, allocations: 39.59 kB / 362.8 MB, free: 1.492 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001131/0.003463, allocations: 71.34 kB / 362.9 MB, free: 1.422 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002099/0.003673, allocations: 79.7 kB / 362.9 MB, free: 1.344 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002229/0.003896, allocations: 314.6 kB / 363.3 MB, free: 1.035 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.004062, allocations: 66.34 kB / 363.3 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001662/0.004229, allocations: 167.7 kB / 363.5 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.946e-05/0.004328, allocations: 95.69 kB / 363.6 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.241e-05/0.00436, allocations: 31.94 kB / 363.6 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.707e-05/0.004388, allocations: 24 kB / 363.6 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.071e-05/0.004428, allocations: 55.81 kB / 363.7 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.262e-05/0.004511, allocations: 95.73 kB / 363.8 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002197/0.004731, allocations: 283.1 kB / 364.1 MB, free: 240 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.004734, allocations: 0 / 364.1 MB, free: 240 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.004736, allocations: 0 / 364.1 MB, free: 240 kB / 282.7 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.004742, allocations: 0 / 364.1 MB, free: 240 kB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007716/0.005513, allocations: 0.5106 MB / 364.6 MB, free: 15.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.005558, allocations: 11.98 kB / 364.6 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.175e-05/0.00561, allocations: 62.72 kB / 364.6 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.804e-05/0.005668, allocations: 28.73 kB / 364.7 MB, free: 15.58 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003487/0.006017, allocations: 197.3 kB / 364.9 MB, free: 15.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.006039, allocations: 20.88 kB / 364.9 MB, free: 15.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.83e-05/0.006077, allocations: 20.38 kB / 364.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003364/0.006414, allocations: 224.6 kB / 365.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.006428, allocations: 4.141 kB / 365.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.006446, allocations: 16.12 kB / 365.1 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.006454, allocations: 4 kB / 365.1 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003002/0.006754, allocations: 193.8 kB / 365.3 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000761/0.007515, allocations: 0.5838 MB / 365.9 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000454/0.007969, allocations: 230.5 kB / 366.1 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/0.008136, allocations: 109.2 kB / 366.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.008154, allocations: 7.938 kB / 366.3 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002907/0.008445, allocations: 178.2 kB / 366.4 MB, free: 13.72 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 1.623e-06/0.008447, allocations: 0 / 366.4 MB, free: 13.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001545/0.009991, allocations: 1.044 MB / 367.5 MB, free: 12.63 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.01003, allocations: 59.39 kB / 367.5 MB, free: 12.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.01015, allocations: 175.2 kB / 367.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.01017, allocations: 41.69 kB / 367.7 MB, free: 12.33 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.315e-05/0.01024, allocations: 144.8 kB / 367.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.507e-05/0.0103, allocations: 111.1 kB / 368 MB, free: 12.08 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.32e-05/0.01036, allocations: 53.7 kB / 368 MB, free: 12.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.002e-05/0.01045, allocations: 330.8 kB / 368.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000178/0.01063, allocations: 130 kB / 368.5 MB, free: 11.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001823/0.01081, allocations: 157.1 kB / 368.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007752/0.01159, allocations: 0.5599 MB / 369.2 MB, free: 10.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.01159, allocations: 0 / 369.2 MB, free: 10.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004352/0.01203, allocations: 384.2 kB / 369.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.518e-05/0.01207, allocations: 33.7 kB / 369.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.01208, allocations: 4.062 kB / 369.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.01209, allocations: 7.938 kB / 369.6 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001639/0.01226, allocations: 71.89 kB / 369.7 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.01226, allocations: 4 kB / 369.7 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.01237, allocations: 27.91 kB / 369.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/0.01239, allocations: 12 kB / 369.7 MB, free: 10.24 MB / 298.7 MB Warning: Assuming fixed start value for the following 4 variables: springDamper.phi_rel:VARIABLE(start = 0.0 unit = \"rad\" fixed = true nominal = if springDamper.phi_nominal >= 2.220446049250313e-16 then springDamper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) \"Relative rotation angle (= flange_b.phi - flange_a.phi)\" type: Real springDamper.w_rel:VARIABLE(start = 0.0 unit = \"rad/s\" fixed = true stateSelect=StateSelect.prefer ) \"Relative angular velocity (= der(phi_rel))\" type: Real damper.phi_rel:VARIABLE(start = 0.0 unit = \"rad\" fixed = true nominal = if damper.phi_nominal >= 2.220446049250313e-16 then damper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) \"Relative rotation angle (= flange_b.phi - flange_a.phi)\" type: Real damper.w_rel:VARIABLE(start = 0.0 unit = \"rad/s\" fixed = true stateSelect=StateSelect.prefer ) \"Relative angular velocity (= der(phi_rel))\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$PRE.trapezoid.count,$PRE.trapezoid.T_start,$PRE.speedSensor.w,trapezoid.count,trapezoid.T_start,speedSensor.w,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * 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.0001746/0.01256, allocations: 173.4 kB / 369.9 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.213e-05/0.01258, allocations: 23.86 kB / 369.9 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.433e-05/0.01263, allocations: 30.64 kB / 370 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.01263, allocations: 3.938 kB / 370 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.01264, allocations: 0 / 370 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.01264, allocations: 4 kB / 370 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007578/0.0134, allocations: 0.7292 MB / 370.7 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.0134, allocations: 0 / 370.7 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.01357, allocations: 71.89 kB / 370.8 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.01357, allocations: 0 / 370.8 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.01359, allocations: 16.05 kB / 370.8 MB, free: 9.125 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.01359, allocations: 0 / 370.8 MB, free: 9.125 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01359, allocations: 4 kB / 370.8 MB, free: 9.121 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005881/0.01418, allocations: 0.537 MB / 371.3 MB, free: 8.562 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.249e-05/0.0142, allocations: 15.86 kB / 371.3 MB, free: 8.547 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.312e-05/0.01422, allocations: 12 kB / 371.4 MB, free: 8.535 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.01433, allocations: 27.95 kB / 371.4 MB, free: 8.508 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.116e-05/0.01439, allocations: 27.95 kB / 371.4 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.0144, allocations: 12 kB / 371.4 MB, free: 8.469 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.702e-05/0.01447, allocations: 135.2 kB / 371.6 MB, free: 8.336 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.01447, allocations: 4 kB / 371.6 MB, free: 8.332 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001964/0.01467, allocations: 60 kB / 371.6 MB, free: 8.273 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (springDamper.phi_rel,springDamper.w_rel,damper.phi_rel,damper.w_rel) * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,speedSensor.w,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0007651/0.01543, allocations: 1.089 MB / 372.7 MB, free: 7.148 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004154/0.01585, allocations: 341.2 kB / 373 MB, free: 6.797 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.01585, allocations: 0 / 373 MB, free: 6.797 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001852/0.01603, allocations: 139.8 kB / 373.2 MB, free: 6.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.01632, allocations: 48.52 kB / 373.2 MB, free: 6.613 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003004/0.01932, allocations: 3.043 MB / 376.3 MB, free: 3.434 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.582e-05/0.01941, allocations: 146.6 kB / 376.4 MB, free: 3.273 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.484e-05/0.01949, allocations: 22.28 kB / 376.4 MB, free: 3.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.562e-05/0.01958, allocations: 84.47 kB / 376.5 MB, free: 3.168 MB / 298.7 MB Notification: Performance of SimCode: time 7.61e-07/0.01958, allocations: 3.938 kB / 376.5 MB, free: 3.164 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02064/0.04023, allocations: 6.322 MB / 382.8 MB, free: 12.95 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.334/7.374, allocations: 3.859 kB / 382.8 MB, free: 12.94 MB / 314.7 MB " [Timeout remaining time 653] (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1_fmu --startTime=0 --stopTime=4 --stepSize=0.0016 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.241024806164205] Failed to read output from testmodel.py, exit status != 0: 7.459023805335164 7.468204023 7.461711437 Calling exit ...