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.001812/0.001812, allocations: 120 kB / 17.17 MB, free: 5.977 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.002097/0.002097, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.408/1.408, allocations: 207.6 MB / 230.5 MB, free: 4.004 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.04867/0.04867, allocations: 8.204 MB / 290.6 MB, free: 8.102 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.002086/0.002086, allocations: 75.84 kB / 405.9 MB, free: 1.422 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2691, allocations: 50.89 MB / 456.8 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003275/0.2724, allocations: 2.427 MB / 459.3 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009294/0.2734, allocations: 0.6933 MB / 459.9 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.2735, allocations: 4.656 kB / 460 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.2736, allocations: 35.59 kB / 460 MB, free: 1.238 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000124/0.2737, allocations: 75 kB / 460.1 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002207/0.274, allocations: 69.44 kB / 460.1 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002761/0.2742, allocations: 299.4 kB / 460.4 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.2744, allocations: 67.22 kB / 460.5 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.2745, allocations: 124.1 kB / 460.6 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.2747, allocations: 134.2 kB / 460.7 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.578e-05/0.2747, allocations: 21.38 kB / 460.8 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.03e-05/0.2747, allocations: 24.5 kB / 460.8 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.593e-05/0.2748, allocations: 54.69 kB / 460.8 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.969e-05/0.2749, allocations: 123.3 kB / 461 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002631/0.2751, allocations: 279.6 kB / 461.2 MB, free: 404 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.2752, allocations: 0 / 461.2 MB, free: 404 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2752, allocations: 0.9062 kB / 461.2 MB, free: 404 kB / 318.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.2752, allocations: 0 / 461.2 MB, free: 404 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.001014/0.2762, allocations: 0.5995 MB / 461.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.2762, allocations: 9.406 kB / 461.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.58e-05/0.2762, allocations: 5.875 kB / 461.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.773e-05/0.2763, allocations: 58.09 kB / 461.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.248e-05/0.2764, allocations: 26.17 kB / 461.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000358/0.2767, allocations: 252.2 kB / 462.2 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.846e-05/0.2768, allocations: 21.83 kB / 462.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.344e-05/0.2768, allocations: 24.62 kB / 462.2 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005313/0.2773, allocations: 229.4 kB / 462.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.2774, allocations: 3.953 kB / 462.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.411e-05/0.2774, allocations: 7.312 kB / 462.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.2774, allocations: 5.625 kB / 462.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005916/0.278, allocations: 197.9 kB / 462.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.2791, allocations: 0.6678 MB / 463.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007478/0.2798, allocations: 240.7 kB / 463.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003068/0.2801, allocations: 118.5 kB / 463.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.2802, allocations: 2.75 kB / 463.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004323/0.2806, allocations: 168 kB / 463.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.643e-06/0.2806, allocations: 0 / 463.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002767/0.2834, allocations: 1.2 MB / 465 MB, free: 13.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.2834, allocations: 60.55 kB / 465.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002016/0.2836, allocations: 179.6 kB / 465.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/0.2836, allocations: 31.98 kB / 465.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.2838, allocations: 146.7 kB / 465.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.168e-05/0.2839, allocations: 104.3 kB / 465.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.892e-05/0.284, allocations: 59.28 kB / 465.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.2841, allocations: 335.5 kB / 465.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003097/0.2844, allocations: 97.48 kB / 466 MB, free: 12.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003371/0.2848, allocations: 140.6 kB / 466.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/0.2863, allocations: 0.5492 MB / 466.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2863, allocations: 1.094 kB / 466.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008885/0.2872, allocations: 362.5 kB / 467.1 MB, free: 12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.665e-05/0.2872, allocations: 40.36 kB / 467.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.2872, allocations: 5.312 kB / 467.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.2872, allocations: 1.406 kB / 467.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003269/0.2876, allocations: 79.12 kB / 467.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.2876, allocations: 2.625 kB / 467.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002286/0.2878, allocations: 29.53 kB / 467.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.375e-05/0.2878, allocations: 6.656 kB / 467.2 MB, free: 11.92 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.0002481/0.2881, allocations: 162.5 kB / 467.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.201e-05/0.2881, allocations: 26.39 kB / 467.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.148e-05/0.2882, allocations: 30.52 kB / 467.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.2882, allocations: 4.531 kB / 467.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.2882, allocations: 0 / 467.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.2882, allocations: 0 / 467.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.2896, allocations: 0.7874 MB / 468.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2896, allocations: 1.094 kB / 468.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003256/0.2899, allocations: 75.8 kB / 468.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.105e-06/0.2899, allocations: 6.797 kB / 468.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.2899, allocations: 5.344 kB / 468.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.76e-06/0.2899, allocations: 7.406 kB / 468.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2899, allocations: 0 / 468.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.291, allocations: 0.5248 MB / 468.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.171e-05/0.2911, allocations: 103.2 kB / 469 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/0.2912, allocations: 7.219 kB / 469 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.2914, allocations: 22.98 kB / 469 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.137e-05/0.2915, allocations: 40.08 kB / 469 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.2915, allocations: 6.906 kB / 469 MB, free: 10.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001196/0.2916, allocations: 133.7 kB / 469.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2916, allocations: 0 / 469.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003106/0.2919, allocations: 63.69 kB / 469.2 MB, free: 10.46 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.001512/0.2935, allocations: 1.087 MB / 470.3 MB, free: 9.578 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007663/0.2942, allocations: 312.8 kB / 470.6 MB, free: 9.406 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2942, allocations: 0 / 470.6 MB, free: 9.406 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000349/0.2946, allocations: 134 kB / 470.7 MB, free: 9.352 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004369/0.295, allocations: 63.86 kB / 470.8 MB, free: 9.309 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005627/0.3006, allocations: 3.02 MB / 473.8 MB, free: 6.965 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003933/0.301, allocations: 0.7522 MB / 474.6 MB, free: 6.184 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.3011, allocations: 22.28 kB / 474.6 MB, free: 6.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/0.3013, allocations: 75.42 kB / 474.7 MB, free: 6.086 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3013, allocations: 0 / 474.7 MB, free: 6.086 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0229/0.3242, allocations: 5.506 MB / 480.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.416/8.74, allocations: 4 kB / 480.2 MB, free: 0.6797 MB / 334.1 MB " [Timeout remaining time 651] (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: 11.095322441018652] Failed to read output from testmodel.py, exit status != 0: 8.86889342701761 8.892874561 8.613334382 Calling exit ...