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.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.00109, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001048/0.001048, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205.4 MB / 222.1 MB, free: 5.887 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03945/0.03945, allocations: 8.097 MB / 278.5 MB, free: 13.45 MB / 238.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.0005406/0.0005407, allocations: 15.12 kB / 338.3 MB, free: 27.06 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09559/0.09614, allocations: 49.28 MB / 387.5 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.002794/0.099, allocations: 2.019 MB / 389.6 MB, free: 7.688 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.1003, allocations: 0.6167 MB / 390.2 MB, free: 7.062 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001952/0.1006, allocations: 4 kB / 390.2 MB, free: 7.059 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.1007, allocations: 23.78 kB / 390.2 MB, free: 7.035 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000193/0.1009, allocations: 59.48 kB / 390.3 MB, free: 6.977 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002913/0.1012, allocations: 51.94 kB / 390.3 MB, free: 6.926 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000333/0.1016, allocations: 262.8 kB / 390.6 MB, free: 6.668 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001966/0.1018, allocations: 73.33 kB / 390.6 MB, free: 6.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001798/0.102, allocations: 95.58 kB / 390.7 MB, free: 6.496 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000187/0.1021, allocations: 107.5 kB / 390.8 MB, free: 6.391 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.765e-05/0.1022, allocations: 12 kB / 390.9 MB, free: 6.379 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.534e-05/0.1023, allocations: 12 kB / 390.9 MB, free: 6.367 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.128e-05/0.1023, allocations: 39.84 kB / 390.9 MB, free: 6.328 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.1025, allocations: 65.58 kB / 391 MB, free: 6.258 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002019/0.1027, allocations: 199.7 kB / 391.2 MB, free: 6.062 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1027, allocations: 0 / 391.2 MB, free: 6.062 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1027, allocations: 0 / 391.2 MB, free: 6.062 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.685e-06/0.1027, allocations: 0 / 391.2 MB, free: 6.062 MB / 286.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.0009568/0.1037, allocations: 0.5473 MB / 391.7 MB, free: 5.461 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.1037, allocations: 12.03 kB / 391.7 MB, free: 5.449 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.972e-05/0.1038, allocations: 23.72 kB / 391.7 MB, free: 5.426 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003007/0.1041, allocations: 243.3 kB / 392 MB, free: 5.148 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.786e-05/0.1041, allocations: 12.44 kB / 392 MB, free: 5.137 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.26e-05/0.1042, allocations: 27.91 kB / 392 MB, free: 5.109 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005398/0.1047, allocations: 235.2 kB / 392.3 MB, free: 4.871 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.774e-05/0.1048, allocations: 4 kB / 392.3 MB, free: 4.867 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.147e-05/0.1048, allocations: 8 kB / 392.3 MB, free: 4.859 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.1048, allocations: 8 kB / 392.3 MB, free: 4.852 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005407/0.1054, allocations: 221.6 kB / 392.5 MB, free: 4.637 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.1065, allocations: 0.7293 MB / 393.2 MB, free: 3.844 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007513/0.1073, allocations: 274.5 kB / 393.5 MB, free: 3.566 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003347/0.1076, allocations: 128.8 kB / 393.6 MB, free: 3.438 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.881e-05/0.1077, allocations: 4 kB / 393.6 MB, free: 3.434 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005149/0.1082, allocations: 176.7 kB / 393.8 MB, free: 3.25 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.844e-06/0.1082, allocations: 0 / 393.8 MB, free: 3.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002842/0.1111, allocations: 1.193 MB / 395 MB, free: 1.969 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.558e-05/0.1111, allocations: 59.41 kB / 395 MB, free: 1.898 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002478/0.1114, allocations: 179.5 kB / 395.2 MB, free: 1.711 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.527e-05/0.1114, allocations: 29.7 kB / 395.2 MB, free: 1.676 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.1116, allocations: 140.7 kB / 395.4 MB, free: 1.535 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.1117, allocations: 98.55 kB / 395.5 MB, free: 1.438 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.314e-05/0.1117, allocations: 4 kB / 395.5 MB, free: 1.434 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002311/0.112, allocations: 334.8 kB / 395.8 MB, free: 1.098 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003413/0.1123, allocations: 103.9 kB / 395.9 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003201/0.1126, allocations: 137.4 kB / 396 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003298/0.113, allocations: 138.2 kB / 396.2 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.113, allocations: 0 / 396.2 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007837/0.1138, allocations: 364.5 kB / 396.5 MB, free: 356 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.046e-05/0.1139, allocations: 40.16 kB / 396.6 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.1139, allocations: 0 / 396.6 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.601e-05/0.1139, allocations: 0 / 396.6 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003268/0.1143, allocations: 79.89 kB / 396.7 MB, free: 232 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.1143, allocations: 0 / 396.7 MB, free: 232 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002068/0.1145, allocations: 36 kB / 396.7 MB, free: 196 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.1145, allocations: 4 kB / 396.7 MB, free: 192 kB / 286.1 MB Warning: Assuming fixed start value for the following 4 variables: damper.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 springDamper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002852/0.1148, allocations: 176.2 kB / 396.9 MB, free: 8 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.925e-05/0.1149, allocations: 15.86 kB / 396.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.768e-05/0.115, allocations: 30.61 kB / 396.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.269e-06/0.115, allocations: 4 kB / 396.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.115, allocations: 0 / 396.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.115, allocations: 3.938 kB / 396.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00116/0.1162, allocations: 0.7416 MB / 397.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1162, allocations: 0 / 397.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003294/0.1165, allocations: 71.89 kB / 397.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.289e-05/0.1165, allocations: 12.05 kB / 397.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.799e-05/0.1166, allocations: 4 kB / 397.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-05/0.1166, allocations: 4 kB / 397.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.1166, allocations: 3.938 kB / 397.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.1177, allocations: 0.5361 MB / 398.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.354e-05/0.1178, allocations: 92.83 kB / 398.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.459e-05/0.1178, allocations: 12.03 kB / 398.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002087/0.118, allocations: 27.98 kB / 398.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.551e-05/0.1182, allocations: 31.95 kB / 398.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.989e-05/0.1182, allocations: 8 kB / 398.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000125/0.1183, allocations: 132.6 kB / 398.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1183, allocations: 0 / 398.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003355/0.1187, allocations: 60 kB / 398.6 MB, free: 14.12 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001225/0.1188, allocations: 107.2 kB / 398.8 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006959/0.1195, allocations: 316.1 kB / 399.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1195, allocations: 11.94 kB / 399.1 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003277/0.1199, allocations: 151.8 kB / 399.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004431/0.1203, allocations: 48.03 kB / 399.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002459/0.1228, allocations: 1.02 MB / 400.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003933/0.1232, allocations: 0.7516 MB / 401 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.1233, allocations: 18.3 kB / 401.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.174e-05/0.1234, allocations: 23.44 kB / 401.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of SimCode: time 8.41e-07/0.1234, allocations: 0 / 401.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of Templates: time 0.006313/0.1297, allocations: 2.471 MB / 403.6 MB, free: 9.164 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.makefile Environment - environmentSimulation: (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 & ./ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1) Environment - environmentSimulation: