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.0009844/0.0009846, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001043/0.001044, allocations: 177.3 kB / 15.94 MB, free: 228 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.514/1.514, allocations: 205.4 MB / 222.1 MB, free: 5.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03943/0.03943, allocations: 8.101 MB / 278.5 MB, free: 13.11 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.0005236/0.0005237, allocations: 20 kB / 338.2 MB, free: 27.03 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1091, allocations: 49.27 MB / 387.5 MB, free: 9.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003085/0.1122, allocations: 1.941 MB / 389.4 MB, free: 7.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.1137, allocations: 0.6246 MB / 390.1 MB, free: 7.117 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002139/0.1139, allocations: 7.938 kB / 390.1 MB, free: 7.109 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.789e-05/0.114, allocations: 19.78 kB / 390.1 MB, free: 7.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003323/0.1143, allocations: 83.75 kB / 390.2 MB, free: 7.008 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004608/0.1148, allocations: 43.95 kB / 390.2 MB, free: 6.965 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005352/0.1154, allocations: 195.6 kB / 390.4 MB, free: 6.773 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002202/0.1156, allocations: 73.33 kB / 390.5 MB, free: 6.699 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002176/0.1158, allocations: 95.62 kB / 390.6 MB, free: 6.605 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000184/0.116, allocations: 103.5 kB / 390.7 MB, free: 6.504 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.131e-05/0.1161, allocations: 12 kB / 390.7 MB, free: 6.492 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.383e-05/0.1161, allocations: 12 kB / 390.7 MB, free: 6.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.688e-05/0.1162, allocations: 43.83 kB / 390.7 MB, free: 6.438 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.154e-05/0.1163, allocations: 69.58 kB / 390.8 MB, free: 6.363 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002283/0.1165, allocations: 195.7 kB / 391 MB, free: 6.172 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.574e-06/0.1165, allocations: 0 / 391 MB, free: 6.172 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1165, allocations: 0 / 391 MB, free: 6.172 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.1165, allocations: 0 / 391 MB, free: 6.172 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.001087/0.1176, allocations: 0.5474 MB / 391.6 MB, free: 5.566 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.1177, allocations: 8.031 kB / 391.6 MB, free: 5.559 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.27e-05/0.1178, allocations: 27.7 kB / 391.6 MB, free: 5.531 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003344/0.1181, allocations: 247.2 kB / 391.8 MB, free: 5.25 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.793e-05/0.1182, allocations: 16.44 kB / 391.8 MB, free: 5.234 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.568e-05/0.1182, allocations: 31.89 kB / 391.9 MB, free: 5.203 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005592/0.1188, allocations: 231.2 kB / 392.1 MB, free: 4.969 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.1188, allocations: 4 kB / 392.1 MB, free: 4.965 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.335e-05/0.1189, allocations: 4 kB / 392.1 MB, free: 4.961 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.1189, allocations: 8 kB / 392.1 MB, free: 4.953 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000581/0.1195, allocations: 217.6 kB / 392.3 MB, free: 4.742 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.1207, allocations: 0.7254 MB / 393.1 MB, free: 3.953 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007479/0.1214, allocations: 273.1 kB / 393.3 MB, free: 3.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.1215, allocations: 4 kB / 393.3 MB, free: 3.676 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004827/0.122, allocations: 172.3 kB / 393.5 MB, free: 3.496 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 4.418e-06/0.122, allocations: 3.984 kB / 393.5 MB, free: 3.492 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002686/0.1247, allocations: 1.189 MB / 394.7 MB, free: 2.215 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.1247, allocations: 55.41 kB / 394.7 MB, free: 2.148 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001916/0.1249, allocations: 187.3 kB / 394.9 MB, free: 1.953 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.984e-05/0.125, allocations: 29.7 kB / 395 MB, free: 1.918 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.822e-05/0.1251, allocations: 140.7 kB / 395.1 MB, free: 1.777 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.842e-05/0.1252, allocations: 102.5 kB / 395.2 MB, free: 1.676 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.279e-05/0.1252, allocations: 4 kB / 395.2 MB, free: 1.672 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.1253, allocations: 338.8 kB / 395.5 MB, free: 1.332 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002981/0.1256, allocations: 103.9 kB / 395.6 MB, free: 1.23 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003082/0.126, allocations: 133.5 kB / 395.8 MB, free: 1.094 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003427/0.1263, allocations: 138.2 kB / 395.9 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1263, allocations: 0 / 395.9 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007623/0.1271, allocations: 360.5 kB / 396.2 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.696e-05/0.1272, allocations: 29.7 kB / 396.3 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.1272, allocations: 3.953 kB / 396.3 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.544e-05/0.1272, allocations: 4 kB / 396.3 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003183/0.1275, allocations: 79.92 kB / 396.4 MB, free: 480 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.752e-05/0.1276, allocations: 4 kB / 396.4 MB, free: 476 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002476/0.1278, allocations: 31.91 kB / 396.4 MB, free: 444 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/0.1279, allocations: 12 kB / 396.4 MB, free: 432 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.0003344/0.1282, allocations: 176.1 kB / 396.6 MB, free: 248 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.882e-05/0.1283, allocations: 15.81 kB / 396.6 MB, free: 232 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.968e-05/0.1283, allocations: 26.66 kB / 396.6 MB, free: 204 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.1283, allocations: 7.953 kB / 396.6 MB, free: 196 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.417e-06/0.1284, allocations: 0 / 396.6 MB, free: 196 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.1284, allocations: 3.984 kB / 396.6 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001365/0.1298, allocations: 0.7305 MB / 397.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.1298, allocations: 0 / 397.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003301/0.1301, allocations: 76.02 kB / 397.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.669e-06/0.1301, allocations: 4 kB / 397.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.906e-05/0.1302, allocations: 7.984 kB / 397.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.784e-06/0.1302, allocations: 11.94 kB / 397.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.1302, allocations: 0 / 397.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.1313, allocations: 0.5512 MB / 398 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.456e-05/0.1314, allocations: 96.83 kB / 398.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.85e-05/0.1314, allocations: 16.03 kB / 398.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.1317, allocations: 23.98 kB / 398.1 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.815e-05/0.1318, allocations: 31.89 kB / 398.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.1318, allocations: 8 kB / 398.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001038/0.1319, allocations: 136.6 kB / 398.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1319, allocations: 0 / 398.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003321/0.1322, allocations: 64 kB / 398.4 MB, free: 14.32 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.0001471/0.1324, allocations: 111.3 kB / 398.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007828/0.1332, allocations: 320 kB / 398.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.1332, allocations: 0 / 398.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003524/0.1336, allocations: 155.9 kB / 399 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.1339, allocations: 43.39 kB / 399 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002722/0.1366, allocations: 1.008 MB / 400 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.137, allocations: 0.7632 MB / 400.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001128/0.1371, allocations: 26.28 kB / 400.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.805e-05/0.1372, allocations: 19.44 kB / 400.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1372, allocations: 0 / 400.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of Templates: time 0.007018/0.1442, allocations: 2.46 MB / 403.3 MB, free: 9.375 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: