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: "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000958/0.0009579, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.000987/0.000987, allocations: 193.8 kB / 16.14 MB, free: 6.715 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.388/1.388, allocations: 205.1 MB / 222 MB, free: 5.012 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03951/0.03951, allocations: 8.111 MB / 277.4 MB, free: 13.61 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.00135/0.00135, allocations: 63.91 kB / 336.6 MB, free: 26.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08688/0.08824, allocations: 48.3 MB / 384.9 MB, free: 10.54 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003414/0.09169, allocations: 2.446 MB / 387.4 MB, free: 8.078 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009554/0.09267, allocations: 0.6359 MB / 388 MB, free: 7.434 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.09279, allocations: 4 kB / 388 MB, free: 7.43 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.09294, allocations: 23.78 kB / 388 MB, free: 7.406 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001273/0.09307, allocations: 63.47 kB / 388.1 MB, free: 7.344 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002122/0.09329, allocations: 67.88 kB / 388.1 MB, free: 7.277 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002377/0.09354, allocations: 270.8 kB / 388.4 MB, free: 7.012 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.09371, allocations: 86.17 kB / 388.5 MB, free: 6.922 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.09384, allocations: 95.64 kB / 388.6 MB, free: 6.828 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.09398, allocations: 127.4 kB / 388.7 MB, free: 6.703 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.333e-05/0.09402, allocations: 20 kB / 388.7 MB, free: 6.684 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.886e-05/0.09406, allocations: 16 kB / 388.7 MB, free: 6.668 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.86e-05/0.09411, allocations: 43.77 kB / 388.8 MB, free: 6.625 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.09423, allocations: 115.4 kB / 388.9 MB, free: 6.512 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002343/0.09447, allocations: 259 kB / 389.2 MB, free: 6.258 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.09448, allocations: 0 / 389.2 MB, free: 6.258 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.11e-07/0.09448, allocations: 0 / 389.2 MB, free: 6.258 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.09449, allocations: 0 / 389.2 MB, free: 6.258 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.0009498/0.09545, allocations: 0.5825 MB / 389.7 MB, free: 5.621 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.09549, allocations: 12.03 kB / 389.8 MB, free: 5.609 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.412e-05/0.09555, allocations: 54.73 kB / 389.8 MB, free: 5.547 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.64e-05/0.09562, allocations: 28.66 kB / 389.8 MB, free: 5.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/0.09588, allocations: 244.5 kB / 390.1 MB, free: 5.242 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.09592, allocations: 20.8 kB / 390.1 MB, free: 5.223 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.371e-05/0.09596, allocations: 24.38 kB / 390.1 MB, free: 5.199 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005075/0.09648, allocations: 235.3 kB / 390.3 MB, free: 4.961 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.0965, allocations: 0 / 390.3 MB, free: 4.961 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.552e-05/0.09653, allocations: 12 kB / 390.4 MB, free: 4.949 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.09655, allocations: 4 kB / 390.4 MB, free: 4.945 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005486/0.0971, allocations: 197.6 kB / 390.6 MB, free: 4.754 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001019/0.09813, allocations: 0.7137 MB / 391.3 MB, free: 3.977 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007422/0.09888, allocations: 248.8 kB / 391.5 MB, free: 3.727 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003104/0.09921, allocations: 116.8 kB / 391.6 MB, free: 3.609 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.09924, allocations: 7.984 kB / 391.6 MB, free: 3.602 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005044/0.09975, allocations: 164.3 kB / 391.8 MB, free: 3.43 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 2.134e-06/0.09976, allocations: 0 / 391.8 MB, free: 3.43 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002373/0.1021, allocations: 1.126 MB / 392.9 MB, free: 2.215 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.1022, allocations: 59.41 kB / 393 MB, free: 2.145 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.1023, allocations: 179.4 kB / 393.2 MB, free: 1.961 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.1024, allocations: 29.7 kB / 393.2 MB, free: 1.926 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.138e-05/0.1025, allocations: 144.7 kB / 393.3 MB, free: 1.781 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.479e-05/0.1026, allocations: 98.55 kB / 393.4 MB, free: 1.684 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.875e-05/0.1026, allocations: 49.7 kB / 393.5 MB, free: 1.629 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1028, allocations: 338.8 kB / 393.8 MB, free: 1.289 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002745/0.103, allocations: 87.94 kB / 393.9 MB, free: 1.203 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002748/0.1033, allocations: 125.4 kB / 394 MB, free: 1.074 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00127/0.1046, allocations: 0.5194 MB / 394.5 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1046, allocations: 4 kB / 394.5 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006589/0.1053, allocations: 335.8 kB / 394.9 MB, free: 192 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.226e-05/0.1053, allocations: 33.64 kB / 394.9 MB, free: 152 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1054, allocations: 3.938 kB / 394.9 MB, free: 148 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.1054, allocations: 4 kB / 394.9 MB, free: 144 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002813/0.1057, allocations: 79.89 kB / 395 MB, free: 64 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.1057, allocations: 0 / 395 MB, free: 64 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002033/0.1059, allocations: 23.98 kB / 395 MB, free: 40 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.295e-05/0.1059, allocations: 11.98 kB / 395 MB, free: 28 kB / 286.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.0002248/0.1061, allocations: 159.7 kB / 395.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.525e-05/0.1062, allocations: 27.66 kB / 395.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.138e-05/0.1063, allocations: 30.64 kB / 395.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.1063, allocations: 4 kB / 395.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.1063, allocations: 0 / 395.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.1063, allocations: 0 / 395.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.1074, allocations: 0.7109 MB / 395.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1074, allocations: 0 / 395.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003037/0.1077, allocations: 71.95 kB / 396 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1077, allocations: 0 / 396 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.1077, allocations: 12 kB / 396 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1077, allocations: 0 / 396 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1078, allocations: 4 kB / 396 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009346/0.1087, allocations: 0.5007 MB / 396.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.469e-05/0.1088, allocations: 92.92 kB / 396.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.467e-05/0.1088, allocations: 4 kB / 396.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002218/0.109, allocations: 23.97 kB / 396.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.683e-05/0.1091, allocations: 35.84 kB / 396.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.1091, allocations: 12 kB / 396.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.461e-05/0.1092, allocations: 136.6 kB / 396.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1092, allocations: 0 / 396.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002995/0.1095, allocations: 56 kB / 396.9 MB, free: 14.05 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 (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.001214/0.1108, allocations: 1.042 MB / 397.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006491/0.1114, allocations: 300.2 kB / 398.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1114, allocations: 0 / 398.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003121/0.1118, allocations: 131.9 kB / 398.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004308/0.1122, allocations: 52.28 kB / 398.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004944/0.1172, allocations: 3.007 MB / 401.4 MB, free: 9.367 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.1175, allocations: 0.7441 MB / 402.1 MB, free: 8.598 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.832e-05/0.1176, allocations: 26.28 kB / 402.2 MB, free: 8.574 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.1177, allocations: 71.41 kB / 402.2 MB, free: 8.504 MB / 302.1 MB Notification: Performance of SimCode: time 6.12e-07/0.1177, allocations: 0 / 402.2 MB, free: 8.504 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01565/0.1334, allocations: 4.783 MB / 407 MB, free: 3.812 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002315/0.1336, allocations: 233.9 kB / 407.3 MB, free: 3.551 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.768/1.902, allocations: 3.516 kB / 407.3 MB, free: 3.551 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1)