Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.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.0009679/0.0009679, 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.001031/0.001031, allocations: 170.3 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.925/0.925, allocations: 158.6 MB / 184.2 MB, free: 3.051 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.02625/0.02625, allocations: 6.395 MB / 242.9 MB, free: 8.98 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,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.097e-06/4.097e-06, allocations: 0 / 359.8 MB, free: 4.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.265e-05/3.675e-05, allocations: 5.938 kB / 359.8 MB, free: 4.402 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.004276/0.004312, allocations: 2.299 MB / 362.1 MB, free: 2.082 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.00573, allocations: 0.6047 MB / 362.7 MB, free: 1.469 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001995/0.00593, allocations: 7.938 kB / 362.7 MB, free: 1.461 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001669/0.006097, allocations: 39.59 kB / 362.7 MB, free: 1.422 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001852/0.006282, allocations: 79.28 kB / 362.8 MB, free: 1.344 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003155/0.006597, allocations: 63.89 kB / 362.9 MB, free: 1.281 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.006974, allocations: 306.6 kB / 363.2 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001974/0.007171, allocations: 70.34 kB / 363.3 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002448/0.007416, allocations: 175.5 kB / 363.4 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001418/0.007558, allocations: 91.75 kB / 363.5 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.095e-05/0.007599, allocations: 24 kB / 363.5 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.278e-05/0.007632, allocations: 24 kB / 363.6 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.527e-05/0.007677, allocations: 51.77 kB / 363.6 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.007778, allocations: 87.81 kB / 363.7 MB, free: 480 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003479/0.008126, allocations: 283.1 kB / 364 MB, free: 196 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.008132, allocations: 0 / 364 MB, free: 196 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.008134, allocations: 4 kB / 364 MB, free: 192 kB / 282.7 MB Notification: Performance of Transformations before backend: time 1.339e-05/0.008148, allocations: 0 / 364 MB, free: 192 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.0009284/0.009076, allocations: 0.4993 MB / 364.5 MB, free: 15.65 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.009126, allocations: 19.92 kB / 364.5 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.895e-05/0.009205, allocations: 54.73 kB / 364.5 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.248e-05/0.009267, allocations: 36.75 kB / 364.6 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003489/0.009616, allocations: 183.3 kB / 364.8 MB, free: 15.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.009633, allocations: 16.88 kB / 364.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.978e-05/0.009673, allocations: 28.33 kB / 364.8 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003425/0.01002, allocations: 224.6 kB / 365 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.01003, allocations: 4.172 kB / 365 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.01005, allocations: 16.12 kB / 365 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.994e-06/0.01006, allocations: 4 kB / 365 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000321/0.01038, allocations: 197.8 kB / 365.2 MB, free: 14.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007703/0.01115, allocations: 0.6064 MB / 365.8 MB, free: 14.19 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004934/0.01164, allocations: 222.5 kB / 366.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.01181, allocations: 112.8 kB / 366.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.01183, allocations: 3.938 kB / 366.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002797/0.01211, allocations: 173.3 kB / 366.3 MB, free: 13.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 2.545e-06/0.01211, allocations: 0 / 366.3 MB, free: 13.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001521/0.01363, allocations: 0.9733 MB / 367.3 MB, free: 12.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.83e-05/0.01367, allocations: 55.41 kB / 367.4 MB, free: 12.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.01379, allocations: 183.5 kB / 367.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.01381, allocations: 33.7 kB / 367.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.763e-05/0.01389, allocations: 148.8 kB / 367.7 MB, free: 12.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.252e-05/0.01394, allocations: 99.12 kB / 367.8 MB, free: 12.1 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.241e-05/0.01401, allocations: 53.7 kB / 367.9 MB, free: 12.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.907e-05/0.0141, allocations: 330.8 kB / 368.2 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.01427, allocations: 117.6 kB / 368.3 MB, free: 11.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001727/0.01444, allocations: 151.2 kB / 368.5 MB, free: 11.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007667/0.01521, allocations: 0.5153 MB / 369 MB, free: 10.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.01521, allocations: 0 / 369 MB, free: 10.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004396/0.01565, allocations: 362.2 kB / 369.3 MB, free: 10.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.425e-05/0.01569, allocations: 37.69 kB / 369.4 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.0157, allocations: 0 / 369.4 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.266e-05/0.01572, allocations: 7.938 kB / 369.4 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/0.0159, allocations: 75.92 kB / 369.5 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.01591, allocations: 0 / 369.5 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.01602, allocations: 23.97 kB / 369.5 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.063e-05/0.01604, allocations: 12 kB / 369.5 MB, free: 10.36 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: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.trapezoid.count,$PRE.trapezoid.T_start,trapezoid.count,trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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.000227/0.01626, allocations: 164.2 kB / 369.7 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.615e-05/0.01629, allocations: 23.86 kB / 369.7 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.924e-05/0.01634, allocations: 30.64 kB / 369.7 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.01635, allocations: 7.938 kB / 369.7 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.01635, allocations: 0 / 369.7 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.01636, allocations: 7.922 kB / 369.7 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007912/0.01715, allocations: 0.6442 MB / 370.4 MB, free: 9.418 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.01715, allocations: 0 / 370.4 MB, free: 9.418 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001961/0.01735, allocations: 75.89 kB / 370.4 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.01735, allocations: 0 / 370.4 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.01737, allocations: 8 kB / 370.4 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.01737, allocations: 3.984 kB / 370.5 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.01738, allocations: 4.062 kB / 370.5 MB, free: 9.328 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006231/0.018, allocations: 0.5063 MB / 371 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.118e-05/0.01803, allocations: 19.86 kB / 371 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.975e-05/0.01806, allocations: 11.94 kB / 371 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.01817, allocations: 28.02 kB / 371 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.264e-05/0.01826, allocations: 27.89 kB / 371 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.01827, allocations: 8 kB / 371.1 MB, free: 8.707 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.919e-05/0.01835, allocations: 136.6 kB / 371.2 MB, free: 8.574 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01835, allocations: 0 / 371.2 MB, free: 8.574 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002193/0.01857, allocations: 60 kB / 371.2 MB, free: 8.516 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: 3 ($whenCondition1,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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008563/0.01943, allocations: 1.057 MB / 372.3 MB, free: 7.422 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004594/0.01988, allocations: 308.9 kB / 372.6 MB, free: 7.102 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.01989, allocations: 0 / 372.6 MB, free: 7.102 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001902/0.02008, allocations: 135.9 kB / 372.7 MB, free: 6.969 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003376/0.02041, allocations: 51.03 kB / 372.8 MB, free: 6.922 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003636/0.02405, allocations: 2.934 MB / 375.7 MB, free: 3.852 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001118/0.02416, allocations: 142.2 kB / 375.9 MB, free: 3.699 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.168e-05/0.02425, allocations: 26.27 kB / 375.9 MB, free: 3.672 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.02436, allocations: 76.48 kB / 376 MB, free: 3.598 MB / 298.7 MB Notification: Performance of SimCode: time 1.022e-06/0.02436, allocations: 0 / 376 MB, free: 3.598 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02064/0.04501, allocations: 6.134 MB / 382.1 MB, free: 13.56 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.442/7.487, allocations: 3.953 kB / 382.1 MB, free: 13.55 MB / 314.7 MB " [Timeout remaining time 652] (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_fmu --startTime=0 --stopTime=4 --stepSize=0.0016 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.33091979008168] Failed to read output from testmodel.py, exit status != 0: 7.573109144344926 7.582441446 7.572178602 Calling exit ...