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.001421/0.001421, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001535/0.001535, allocations: 216.7 kB / 23.04 MB, free: 5.078 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.403/1.403, allocations: 207.6 MB / 233.8 MB, free: 9.984 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.04994/0.04994, allocations: 8.204 MB / 294.3 MB, free: 13.75 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_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",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.002438/0.002438, allocations: 68.44 kB / 411.2 MB, free: 46.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07826/0.0807, allocations: 50.93 MB / 462.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.004439/0.08513, allocations: 2.455 MB / 464.6 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.08655, allocations: 0.6748 MB / 465.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002214/0.08677, allocations: 7.938 kB / 465.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001926/0.08696, allocations: 39.66 kB / 465.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000235/0.0872, allocations: 75.28 kB / 465.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003173/0.08752, allocations: 71.84 kB / 465.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000447/0.08796, allocations: 306.7 kB / 465.8 MB, free: 9.887 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002031/0.08817, allocations: 74.23 kB / 465.8 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002052/0.08837, allocations: 115.6 kB / 465.9 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001951/0.08857, allocations: 127.5 kB / 466.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.026e-05/0.08861, allocations: 28 kB / 466.1 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.201e-05/0.08865, allocations: 27.94 kB / 466.1 MB, free: 9.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.753e-05/0.08871, allocations: 51.84 kB / 466.2 MB, free: 9.469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00014/0.08885, allocations: 127.4 kB / 466.3 MB, free: 9.344 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003889/0.08923, allocations: 278.8 kB / 466.6 MB, free: 9.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.08924, allocations: 0 / 466.6 MB, free: 9.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.08924, allocations: 0 / 466.6 MB, free: 9.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.08925, allocations: 0 / 466.6 MB, free: 9.07 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001123/0.09038, allocations: 0.5188 MB / 467.1 MB, free: 8.516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.09042, allocations: 15.98 kB / 467.1 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.852e-05/0.09044, allocations: 4.625 kB / 467.1 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.543e-05/0.09051, allocations: 54.73 kB / 467.2 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.152e-05/0.09058, allocations: 24.8 kB / 467.2 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003782/0.09096, allocations: 198 kB / 467.4 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.09098, allocations: 16.81 kB / 467.4 MB, free: 8.176 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.42e-05/0.09103, allocations: 28.38 kB / 467.4 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005188/0.09155, allocations: 227.2 kB / 467.6 MB, free: 7.918 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.09157, allocations: 7.891 kB / 467.7 MB, free: 7.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.167e-05/0.09159, allocations: 4 kB / 467.7 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.0916, allocations: 11.98 kB / 467.7 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005609/0.09216, allocations: 193.6 kB / 467.9 MB, free: 7.707 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.09322, allocations: 0.6302 MB / 468.5 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006902/0.09391, allocations: 242.3 kB / 468.7 MB, free: 6.789 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002937/0.09421, allocations: 112.8 kB / 468.8 MB, free: 6.676 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.36e-05/0.09422, allocations: 0 / 468.8 MB, free: 6.676 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004131/0.09463, allocations: 173.1 kB / 469 MB, free: 6.496 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.323e-06/0.09463, allocations: 0 / 469 MB, free: 6.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002595/0.09723, allocations: 1.054 MB / 470.1 MB, free: 5.391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.09728, allocations: 55.41 kB / 470.1 MB, free: 5.324 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.09745, allocations: 183.2 kB / 470.3 MB, free: 5.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.468e-05/0.09749, allocations: 37.7 kB / 470.3 MB, free: 5.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.09759, allocations: 140.8 kB / 470.5 MB, free: 4.949 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.317e-05/0.09768, allocations: 115.1 kB / 470.6 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.429e-05/0.09778, allocations: 57.69 kB / 470.6 MB, free: 4.773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.09791, allocations: 330.8 kB / 471 MB, free: 4.441 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002901/0.0982, allocations: 96.27 kB / 471.1 MB, free: 4.344 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003086/0.09851, allocations: 139.4 kB / 471.2 MB, free: 4.199 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001364/0.09988, allocations: 0.5482 MB / 471.7 MB, free: 3.625 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.29e-05/0.09989, allocations: 7.984 kB / 471.7 MB, free: 3.617 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007929/0.1007, allocations: 366.2 kB / 472.1 MB, free: 3.246 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/0.1007, allocations: 29.7 kB / 472.1 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.1007, allocations: 4 kB / 472.1 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.1007, allocations: 0 / 472.1 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003302/0.1011, allocations: 79.88 kB / 472.2 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.1011, allocations: 4.062 kB / 472.2 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002142/0.1013, allocations: 27.97 kB / 472.2 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.314e-05/0.1013, allocations: 15.94 kB / 472.3 MB, free: 3.082 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: 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.0002241/0.1015, allocations: 157.7 kB / 472.4 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.872e-05/0.1016, allocations: 27.8 kB / 472.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.661e-05/0.1016, allocations: 30.64 kB / 472.5 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.1017, allocations: 4 kB / 472.5 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.1017, allocations: 0 / 472.5 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.1017, allocations: 0 / 472.5 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0013/0.103, allocations: 0.7678 MB / 473.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.103, allocations: 0 / 473.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003212/0.1033, allocations: 71.89 kB / 473.3 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.1033, allocations: 0 / 473.3 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.1033, allocations: 8.062 kB / 473.3 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.63e-06/0.1033, allocations: 8 kB / 473.3 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1033, allocations: 0 / 473.3 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001065/0.1044, allocations: 0.533 MB / 473.9 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.546e-05/0.1044, allocations: 19.91 kB / 473.9 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.127e-05/0.1045, allocations: 11.98 kB / 473.9 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002307/0.1047, allocations: 23.97 kB / 473.9 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.116e-05/0.1048, allocations: 31.89 kB / 473.9 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.101e-05/0.1048, allocations: 12 kB / 474 MB, free: 1.297 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001103/0.1049, allocations: 139.2 kB / 474.1 MB, free: 1.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1049, allocations: 0 / 474.1 MB, free: 1.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003061/0.1052, allocations: 63.98 kB / 474.2 MB, free: 1.098 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: 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.001379/0.1066, allocations: 1.077 MB / 475.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007276/0.1073, allocations: 311.3 kB / 475.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.1073, allocations: 0 / 475.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003415/0.1077, allocations: 135.8 kB / 475.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004182/0.1081, allocations: 63.3 kB / 475.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005571/0.1137, allocations: 3.023 MB / 478.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.1141, allocations: 0.7522 MB / 479.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.1142, allocations: 26.28 kB / 479.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.1143, allocations: 75.42 kB / 479.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1143, allocations: 0 / 479.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02717/0.1415, allocations: 5.724 MB / 485.3 MB, free: 5.793 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.04, allocations: 4.062 kB / 485.3 MB, free: 5.789 MB / 350.1 MB " [Timeout remaining time 649] (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 os._exit(0), Time elapsed: 13.66590899496805] Failed to read output from testmodel.py, exit status != 0: 11.204670635983348 11.23096623 11.136360351 Calling exit ...