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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 113.2 kB / 16.37 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001201/0.0012, allocations: 196 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.396/1.396, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04182/0.04182, allocations: 8.108 MB / 278.6 MB, free: 3.969 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.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.001411/0.001411, allocations: 63.91 kB / 338.6 MB, free: 7.852 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2458, allocations: 48.29 MB / 386.9 MB, free: 51.58 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003892/0.2497, allocations: 2.411 MB / 389.3 MB, free: 49.92 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.2509, allocations: 0.6738 MB / 390 MB, free: 49.45 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001992/0.2512, allocations: 7.688 kB / 390 MB, free: 49.44 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001649/0.2514, allocations: 36.8 kB / 390.1 MB, free: 49.42 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000219/0.2516, allocations: 75.48 kB / 390.1 MB, free: 49.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003781/0.252, allocations: 72.8 kB / 390.2 MB, free: 49.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004786/0.2525, allocations: 300 kB / 390.5 MB, free: 49.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000258/0.2527, allocations: 101.7 kB / 390.6 MB, free: 49.14 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002545/0.253, allocations: 113.2 kB / 390.7 MB, free: 49.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002464/0.2533, allocations: 131.5 kB / 390.8 MB, free: 49.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.844e-05/0.2533, allocations: 24.66 kB / 390.9 MB, free: 49.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.28e-05/0.2534, allocations: 23.97 kB / 390.9 MB, free: 49.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.449e-05/0.2535, allocations: 49 kB / 390.9 MB, free: 48.99 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.2536, allocations: 138.6 kB / 391.1 MB, free: 48.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003884/0.254, allocations: 278.7 kB / 391.3 MB, free: 48.8 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.254, allocations: 2.344 kB / 391.3 MB, free: 48.8 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.254, allocations: 0 / 391.3 MB, free: 48.8 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.949e-06/0.2541, allocations: 0 / 391.3 MB, free: 48.8 MB / 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.00102/0.2551, allocations: 0.5837 MB / 391.9 MB, free: 48.3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.2551, allocations: 14.45 kB / 391.9 MB, free: 48.3 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.5e-05/0.2552, allocations: 25.62 kB / 392 MB, free: 48.29 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003599/0.2556, allocations: 257.6 kB / 392.2 MB, free: 48.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.2556, allocations: 15.27 kB / 392.2 MB, free: 48.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.036e-05/0.2557, allocations: 24.67 kB / 392.2 MB, free: 48.03 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005477/0.2562, allocations: 228.7 kB / 392.5 MB, free: 47.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.2563, allocations: 2.25 kB / 392.5 MB, free: 47.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.478e-05/0.2563, allocations: 11.11 kB / 392.5 MB, free: 47.92 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.2563, allocations: 4.594 kB / 392.5 MB, free: 47.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005905/0.2569, allocations: 196.7 kB / 392.7 MB, free: 47.88 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.258, allocations: 0.6641 MB / 393.3 MB, free: 47.44 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006667/0.2586, allocations: 250.3 kB / 393.6 MB, free: 47.35 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002917/0.2589, allocations: 119.1 kB / 393.7 MB, free: 47.31 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.259, allocations: 5.406 kB / 393.7 MB, free: 47.31 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004094/0.2594, allocations: 168.5 kB / 393.9 MB, free: 47.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.984e-06/0.2594, allocations: 3.531 kB / 393.9 MB, free: 47.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002378/0.2618, allocations: 1.191 MB / 395.1 MB, free: 46.51 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.054e-05/0.2618, allocations: 56.89 kB / 395.1 MB, free: 46.45 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001549/0.262, allocations: 188.4 kB / 395.3 MB, free: 46.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.499e-05/0.262, allocations: 31.83 kB / 395.3 MB, free: 46.29 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.45e-05/0.2621, allocations: 142.1 kB / 395.5 MB, free: 46.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.421e-05/0.2622, allocations: 104.9 kB / 395.6 MB, free: 46.08 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.547e-05/0.2623, allocations: 55.36 kB / 395.6 MB, free: 46.04 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.319e-05/0.2623, allocations: 335.7 kB / 396 MB, free: 45.72 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002864/0.2626, allocations: 99.91 kB / 396.1 MB, free: 45.69 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002913/0.2629, allocations: 133.2 kB / 396.2 MB, free: 45.63 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.2642, allocations: 0.5493 MB / 396.7 MB, free: 45.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2642, allocations: 0 / 396.7 MB, free: 45.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007045/0.2649, allocations: 359.1 kB / 397.1 MB, free: 45.2 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/0.265, allocations: 36.2 kB / 397.1 MB, free: 45.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.265, allocations: 1.281 kB / 397.1 MB, free: 45.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.265, allocations: 2.281 kB / 397.1 MB, free: 45.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003131/0.2653, allocations: 76.12 kB / 397.2 MB, free: 45.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.2653, allocations: 6.844 kB / 397.2 MB, free: 45.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002356/0.2656, allocations: 24.31 kB / 397.2 MB, free: 45.15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/0.2656, allocations: 11.28 kB / 397.2 MB, free: 45.15 MB / 318.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 >= 1e-15 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 >= 1e-15 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.0001986/0.2658, allocations: 178.4 kB / 397.4 MB, free: 45 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.767e-05/0.2659, allocations: 31.41 kB / 397.5 MB, free: 44.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.408e-05/0.2659, allocations: 29.16 kB / 397.5 MB, free: 44.95 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.2659, allocations: 2.75 kB / 397.5 MB, free: 44.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.266, allocations: 2.188 kB / 397.5 MB, free: 44.95 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.266, allocations: 1.406 kB / 397.5 MB, free: 44.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001198/0.2672, allocations: 0.7793 MB / 398.3 MB, free: 44.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.2672, allocations: 2.625 kB / 398.3 MB, free: 44.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003507/0.2676, allocations: 72.97 kB / 398.3 MB, free: 44.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.2676, allocations: 4.984 kB / 398.3 MB, free: 44.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.2676, allocations: 11.33 kB / 398.4 MB, free: 44.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.2676, allocations: 2.375 kB / 398.4 MB, free: 44.42 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2676, allocations: 0.6094 kB / 398.4 MB, free: 44.42 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009691/0.2686, allocations: 0.5373 MB / 398.9 MB, free: 44.14 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.474e-05/0.2687, allocations: 95.56 kB / 399 MB, free: 44.03 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.094e-05/0.2687, allocations: 8.234 kB / 399 MB, free: 44.03 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.269, allocations: 22.84 kB / 399 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.541e-05/0.269, allocations: 28.88 kB / 399 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.2691, allocations: 11.5 kB / 399.1 MB, free: 44.01 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001029/0.2692, allocations: 140.2 kB / 399.2 MB, free: 43.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2692, allocations: 0 / 399.2 MB, free: 43.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000355/0.2695, allocations: 63.12 kB / 399.3 MB, free: 43.91 MB / 318.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.0001045/0.2697, allocations: 112.5 kB / 399.4 MB, free: 43.8 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006881/0.2704, allocations: 327.5 kB / 399.7 MB, free: 43.67 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2704, allocations: 0 / 399.7 MB, free: 43.67 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003272/0.2707, allocations: 139.2 kB / 399.8 MB, free: 43.63 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004293/0.2711, allocations: 63.77 kB / 399.9 MB, free: 43.61 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002457/0.2736, allocations: 0.8807 MB / 400.8 MB, free: 43.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001914/0.2738, allocations: 0.7527 MB / 401.5 MB, free: 42.42 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001181/0.2739, allocations: 23.47 kB / 401.5 MB, free: 42.42 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.855e-05/0.274, allocations: 26.62 kB / 401.6 MB, free: 42.41 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.274, allocations: 4 kB / 401.6 MB, free: 42.41 MB / 318.1 MB Notification: Performance of Templates: time 0.007832/0.2819, allocations: 2.936 MB / 404.5 MB, free: 41.12 MB / 318.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.makefile (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 & ./ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1)