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.005168/0.005168, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001236/0.001236, allocations: 195.2 kB / 16.67 MB, free: 5.52 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.713/1.713, allocations: 205.1 MB / 222.5 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.07241/0.07241, allocations: 8.103 MB / 278 MB, free: 3.945 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.001416/0.001416, allocations: 69.39 kB / 386.6 MB, free: 47.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1089, allocations: 48.32 MB / 435 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003424/0.1124, allocations: 2.394 MB / 437.4 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009777/0.1134, allocations: 0.632 MB / 438 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001605/0.1136, allocations: 7.938 kB / 438 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001852/0.1138, allocations: 31.66 kB / 438 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001608/0.114, allocations: 75.34 kB / 438.1 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002769/0.1142, allocations: 67.84 kB / 438.2 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003381/0.1146, allocations: 306.7 kB / 438.5 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002393/0.1148, allocations: 97.92 kB / 438.6 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.115, allocations: 115.6 kB / 438.7 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.1152, allocations: 123.5 kB / 438.8 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.922e-05/0.1152, allocations: 20 kB / 438.8 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.911e-05/0.1153, allocations: 28 kB / 438.8 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.454e-05/0.1153, allocations: 55.77 kB / 438.9 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.1154, allocations: 127.4 kB / 439 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002731/0.1157, allocations: 275 kB / 439.3 MB, free: 4.336 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.1157, allocations: 0 / 439.3 MB, free: 4.336 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.1157, allocations: 0 / 439.3 MB, free: 4.336 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.457e-05/0.1158, allocations: 0 / 439.3 MB, free: 4.336 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.00097/0.1167, allocations: 0.5787 MB / 439.9 MB, free: 3.703 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.1168, allocations: 8.031 kB / 439.9 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.187e-05/0.1169, allocations: 32.56 kB / 439.9 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002892/0.1171, allocations: 236.6 kB / 440.1 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.1172, allocations: 20.75 kB / 440.2 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.189e-05/0.1172, allocations: 28.36 kB / 440.2 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004666/0.1177, allocations: 223.5 kB / 440.4 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.1177, allocations: 3.906 kB / 440.4 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.461e-05/0.1178, allocations: 12 kB / 440.4 MB, free: 3.105 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.1178, allocations: 4 kB / 440.4 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005084/0.1183, allocations: 201.5 kB / 440.6 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008271/0.1191, allocations: 0.7137 MB / 441.3 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006432/0.1198, allocations: 238.4 kB / 441.6 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002821/0.1201, allocations: 123.4 kB / 441.7 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.1201, allocations: 7.938 kB / 441.7 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003485/0.1205, allocations: 163.2 kB / 441.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 1.733e-06/0.1205, allocations: 0 / 441.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002191/0.1227, allocations: 1.123 MB / 443 MB, free: 384 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.972e-05/0.1227, allocations: 55.41 kB / 443 MB, free: 316 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.1229, allocations: 179.5 kB / 443.2 MB, free: 124 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.1229, allocations: 33.7 kB / 443.2 MB, free: 84 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.123, allocations: 136.7 kB / 443.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.407e-05/0.1231, allocations: 102.6 kB / 443.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.81e-05/0.1232, allocations: 53.7 kB / 443.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002376/0.1235, allocations: 330.8 kB / 443.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002872/0.1237, allocations: 87.94 kB / 443.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003251/0.1241, allocations: 133.5 kB / 444.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001388/0.1255, allocations: 0.5191 MB / 444.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1255, allocations: 0 / 444.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000799/0.1263, allocations: 332.3 kB / 444.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.207e-05/0.1263, allocations: 39.66 kB / 445 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.1264, allocations: 8.031 kB / 445 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.1264, allocations: 0 / 445 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003774/0.1268, allocations: 67.89 kB / 445 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.1268, allocations: 4 kB / 445 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/0.127, allocations: 27.97 kB / 445.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.937e-05/0.127, allocations: 4 kB / 445.1 MB, free: 14.2 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 >= 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: 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.0002366/0.1273, allocations: 164.4 kB / 445.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.248e-05/0.1273, allocations: 23.69 kB / 445.2 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.53e-05/0.1274, allocations: 30.64 kB / 445.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.1274, allocations: 4 kB / 445.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.1274, allocations: 4 kB / 445.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1274, allocations: 0 / 445.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001217/0.1287, allocations: 0.707 MB / 446 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.1287, allocations: 4.062 kB / 446 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003064/0.129, allocations: 63.95 kB / 446.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.129, allocations: 0 / 446.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.087e-05/0.129, allocations: 8 kB / 446.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.129, allocations: 4 kB / 446.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1291, allocations: 3.938 kB / 446.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/0.1302, allocations: 0.5055 MB / 446.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.054e-05/0.1303, allocations: 96.83 kB / 446.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.633e-05/0.1304, allocations: 8.094 kB / 446.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002228/0.1306, allocations: 24.02 kB / 446.7 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.935e-05/0.1307, allocations: 31.95 kB / 446.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.944e-05/0.1307, allocations: 11.94 kB / 446.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001053/0.1308, allocations: 132.6 kB / 446.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1309, allocations: 3.938 kB / 446.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003223/0.1312, allocations: 60 kB / 446.9 MB, free: 12.2 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.0001273/0.1313, allocations: 103.2 kB / 447 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007226/0.132, allocations: 304 kB / 447.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1321, allocations: 0 / 447.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003461/0.1324, allocations: 139.7 kB / 447.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004331/0.1329, allocations: 59.83 kB / 447.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002549/0.1354, allocations: 0.8612 MB / 448.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003515/0.1358, allocations: 0.748 MB / 449.1 MB, free: 9.918 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.1359, allocations: 22.3 kB / 449.2 MB, free: 9.895 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.511e-05/0.136, allocations: 19.44 kB / 449.2 MB, free: 9.875 MB / 334.1 MB Notification: Performance of SimCode: time 5.92e-07/0.136, allocations: 4 kB / 449.2 MB, free: 9.871 MB / 334.1 MB Notification: Performance of Templates: time 0.006616/0.1426, allocations: 2.862 MB / 452 MB, free: 7.039 MB / 334.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.makefile (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)