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.001256/0.001256, allocations: 116.1 kB / 17.17 MB, free: 6 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.001298/0.001298, allocations: 209.5 kB / 20.13 MB, free: 3.055 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.407/1.407, allocations: 207.6 MB / 230.5 MB, free: 4.016 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.04911/0.04911, allocations: 8.203 MB / 290.6 MB, free: 8.117 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.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",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.002101/0.002101, allocations: 76.55 kB / 405.9 MB, free: 1.441 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2651, allocations: 50.89 MB / 456.8 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003147/0.2682, allocations: 2.41 MB / 459.2 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009396/0.2691, allocations: 0.6446 MB / 459.9 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.2693, allocations: 7.688 kB / 459.9 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001441/0.2694, allocations: 35.03 kB / 459.9 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001294/0.2696, allocations: 71.23 kB / 460 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002253/0.2698, allocations: 80.27 kB / 460.1 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002924/0.2701, allocations: 290.7 kB / 460.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.2702, allocations: 69.34 kB / 460.4 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.2703, allocations: 116.2 kB / 460.5 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.2705, allocations: 125.3 kB / 460.7 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.98e-05/0.2705, allocations: 21.75 kB / 460.7 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.927e-05/0.2706, allocations: 23.75 kB / 460.7 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.177e-05/0.2706, allocations: 53.88 kB / 460.8 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.2707, allocations: 130.8 kB / 460.9 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002615/0.271, allocations: 270 kB / 461.1 MB, free: 492 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.271, allocations: 0 / 461.1 MB, free: 492 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.271, allocations: 5.312 kB / 461.2 MB, free: 488 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.271, allocations: 0 / 461.2 MB, free: 488 kB / 318.1 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.000943/0.2719, allocations: 0.5825 MB / 461.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.272, allocations: 13.39 kB / 461.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.674e-05/0.272, allocations: 5.406 kB / 461.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.56e-05/0.272, allocations: 61.64 kB / 461.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.273e-05/0.2721, allocations: 30.97 kB / 461.8 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003527/0.2724, allocations: 241.9 kB / 462.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/0.2725, allocations: 13.09 kB / 462.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.235e-05/0.2725, allocations: 27.7 kB / 462.1 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005258/0.2731, allocations: 224.5 kB / 462.3 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.2731, allocations: 1.219 kB / 462.3 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.486e-05/0.2731, allocations: 13.66 kB / 462.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.2731, allocations: 14.42 kB / 462.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000566/0.2737, allocations: 195.1 kB / 462.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.2747, allocations: 0.7158 MB / 463.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007301/0.2755, allocations: 231.2 kB / 463.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003115/0.2758, allocations: 109.2 kB / 463.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.2758, allocations: 6.75 kB / 463.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000404/0.2762, allocations: 160.3 kB / 463.8 MB, free: 14.42 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.613e-06/0.2762, allocations: 3.938 kB / 463.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002586/0.2788, allocations: 1.131 MB / 464.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.773e-05/0.2788, allocations: 55.44 kB / 465 MB, free: 13.54 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001936/0.279, allocations: 179.9 kB / 465.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.2791, allocations: 30.98 kB / 465.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.2792, allocations: 143.4 kB / 465.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.954e-05/0.2793, allocations: 102.2 kB / 465.4 MB, free: 13.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.074e-05/0.2794, allocations: 52.17 kB / 465.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.2795, allocations: 332.8 kB / 465.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002906/0.2798, allocations: 93.14 kB / 465.9 MB, free: 12.72 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003134/0.2801, allocations: 122.3 kB / 466 MB, free: 12.65 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001366/0.2815, allocations: 0.512 MB / 466.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2815, allocations: 0 / 466.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007462/0.2822, allocations: 336.1 kB / 466.8 MB, free: 12.15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.751e-05/0.2823, allocations: 36 kB / 466.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.2823, allocations: 1.375 kB / 466.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.2823, allocations: 5.156 kB / 466.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002931/0.2826, allocations: 76.64 kB / 466.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.2826, allocations: 1.219 kB / 466.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002113/0.2828, allocations: 25.66 kB / 467 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.278e-05/0.2828, allocations: 9.75 kB / 467 MB, free: 12.07 MB / 334.1 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.0002428/0.2831, allocations: 166.1 kB / 467.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.798e-05/0.2831, allocations: 25.08 kB / 467.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.867e-05/0.2832, allocations: 34.84 kB / 467.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.2832, allocations: 2.25 kB / 467.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.2832, allocations: 1.438 kB / 467.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.2832, allocations: 0 / 467.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/0.2844, allocations: 0.7102 MB / 467.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2844, allocations: 1.094 kB / 467.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003194/0.2847, allocations: 71.3 kB / 468 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.2847, allocations: 5.25 kB / 468 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.2848, allocations: 6.375 kB / 468 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2848, allocations: 5.438 kB / 468 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2848, allocations: 5.219 kB / 468 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.2858, allocations: 0.5048 MB / 468.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.565e-05/0.2859, allocations: 99.72 kB / 468.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.2859, allocations: 6.5 kB / 468.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002269/0.2861, allocations: 22.86 kB / 468.6 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.425e-05/0.2862, allocations: 35.12 kB / 468.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.2862, allocations: 7.25 kB / 468.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001094/0.2864, allocations: 132.5 kB / 468.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2864, allocations: 0 / 468.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000302/0.2867, allocations: 60.97 kB / 468.9 MB, free: 10.68 MB / 334.1 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.001369/0.288, allocations: 1.042 MB / 469.9 MB, free: 9.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006915/0.2887, allocations: 293.7 kB / 470.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2887, allocations: 3.938 kB / 470.2 MB, free: 9.652 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003387/0.2891, allocations: 128.7 kB / 470.3 MB, free: 9.598 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004139/0.2895, allocations: 57.11 kB / 470.4 MB, free: 9.562 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005544/0.295, allocations: 2.926 MB / 473.3 MB, free: 7.355 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004084/0.2954, allocations: 0.7455 MB / 474.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.913e-05/0.2955, allocations: 27.22 kB / 474.1 MB, free: 6.617 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.2957, allocations: 77.12 kB / 474.2 MB, free: 6.555 MB / 334.1 MB Notification: Performance of SimCode: time 7.52e-07/0.2957, allocations: 5.094 kB / 474.2 MB, free: 6.551 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.318, allocations: 5.269 MB / 479.4 MB, free: 1.418 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.219/8.537, allocations: 11.5 kB / 479.4 MB, free: 1.41 MB / 334.1 MB " [Timeout remaining time 651] (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: 10.943646102969069] Failed to read output from testmodel.py, exit status != 0: 8.666327863000333 8.691771916 8.415961761 Calling exit ...