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.000905/0.0009051, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.0009241/0.000924, allocations: 168.7 kB / 15.95 MB, free: 204 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.469/1.469, allocations: 205.4 MB / 222.1 MB, free: 5.395 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03714/0.03714, allocations: 8.116 MB / 278.5 MB, free: 13.07 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.0004855/0.0004855, allocations: 19.92 kB / 338.4 MB, free: 26.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09661/0.09711, allocations: 49.27 MB / 387.7 MB, free: 9.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.002669/0.09982, allocations: 2.023 MB / 389.7 MB, free: 7.535 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009032/0.1007, allocations: 0.6011 MB / 390.3 MB, free: 6.926 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.888e-05/0.1009, allocations: 4 kB / 390.3 MB, free: 6.922 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.101, allocations: 23.78 kB / 390.3 MB, free: 6.898 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000118/0.1011, allocations: 63.47 kB / 390.4 MB, free: 6.836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002238/0.1013, allocations: 55.94 kB / 390.4 MB, free: 6.781 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003002/0.1016, allocations: 266.8 kB / 390.7 MB, free: 6.52 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001673/0.1018, allocations: 73.27 kB / 390.8 MB, free: 6.445 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.102, allocations: 95.62 kB / 390.8 MB, free: 6.352 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001398/0.1021, allocations: 107.5 kB / 391 MB, free: 6.246 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.261e-05/0.1022, allocations: 8 kB / 391 MB, free: 6.238 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.158e-05/0.1022, allocations: 12 kB / 391 MB, free: 6.227 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.361e-05/0.1023, allocations: 43.83 kB / 391 MB, free: 6.184 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.043e-05/0.1024, allocations: 69.58 kB / 391.1 MB, free: 6.109 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002044/0.1026, allocations: 187.7 kB / 391.3 MB, free: 5.926 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.1026, allocations: 11.98 kB / 391.3 MB, free: 5.914 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1026, allocations: 0 / 391.3 MB, free: 5.914 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.1026, allocations: 0 / 391.3 MB, free: 5.914 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.0009347/0.1035, allocations: 0.5474 MB / 391.8 MB, free: 5.309 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.1036, allocations: 11.97 kB / 391.8 MB, free: 5.297 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.552e-05/0.1037, allocations: 58.55 kB / 391.9 MB, free: 5.23 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.415e-05/0.1037, allocations: 23.72 kB / 391.9 MB, free: 5.207 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002916/0.104, allocations: 239.3 kB / 392.2 MB, free: 4.934 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.104, allocations: 16.44 kB / 392.2 MB, free: 4.918 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.422e-05/0.1041, allocations: 35.89 kB / 392.2 MB, free: 4.883 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004833/0.1046, allocations: 223.2 kB / 392.4 MB, free: 4.656 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.1046, allocations: 8 kB / 392.4 MB, free: 4.648 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.191e-05/0.1046, allocations: 7.984 kB / 392.4 MB, free: 4.641 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.1047, allocations: 12 kB / 392.4 MB, free: 4.629 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005305/0.1052, allocations: 217.6 kB / 392.7 MB, free: 4.418 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.1063, allocations: 0.7293 MB / 393.4 MB, free: 3.625 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006708/0.107, allocations: 270.3 kB / 393.7 MB, free: 3.355 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002844/0.1073, allocations: 128.8 kB / 393.8 MB, free: 3.227 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.068e-05/0.1073, allocations: 4 kB / 393.8 MB, free: 3.223 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004602/0.1078, allocations: 176.7 kB / 394 MB, free: 3.039 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.583e-06/0.1078, allocations: 0 / 394 MB, free: 3.039 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002278/0.1101, allocations: 1.201 MB / 395.2 MB, free: 1.75 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.1101, allocations: 55.41 kB / 395.2 MB, free: 1.684 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.1103, allocations: 179.5 kB / 395.4 MB, free: 1.496 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.212e-05/0.1103, allocations: 29.7 kB / 395.4 MB, free: 1.461 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.332e-05/0.1104, allocations: 140.7 kB / 395.6 MB, free: 1.32 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.1106, allocations: 102.5 kB / 395.7 MB, free: 1.219 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.173e-05/0.1106, allocations: 4 kB / 395.7 MB, free: 1.215 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.1107, allocations: 330.8 kB / 396 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002741/0.111, allocations: 107.9 kB / 396.1 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002654/0.1113, allocations: 137.5 kB / 396.2 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002849/0.1116, allocations: 138.2 kB / 396.4 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.1116, allocations: 4 kB / 396.4 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006602/0.1123, allocations: 356.5 kB / 396.7 MB, free: 136 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.496e-05/0.1123, allocations: 40 kB / 396.7 MB, free: 92 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1123, allocations: 3.984 kB / 396.7 MB, free: 88 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.1124, allocations: 0 / 396.7 MB, free: 88 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002765/0.1126, allocations: 75.95 kB / 396.8 MB, free: 12 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.1126, allocations: 7.875 kB / 396.8 MB, free: 4 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002017/0.1129, allocations: 36 kB / 396.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.1129, allocations: 8 kB / 396.9 MB, free: 15.96 MB / 302.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.0002094/0.1131, allocations: 160 kB / 397 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.753e-05/0.1131, allocations: 19.75 kB / 397 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.48e-05/0.1132, allocations: 34.59 kB / 397.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.1132, allocations: 4 kB / 397.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.1132, allocations: 0 / 397.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1132, allocations: 0 / 397.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.1144, allocations: 0.7377 MB / 397.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.1144, allocations: 0 / 397.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002929/0.1147, allocations: 76.02 kB / 397.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.97e-06/0.1147, allocations: 4 kB / 397.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.1148, allocations: 12 kB / 397.9 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.1148, allocations: 0 / 397.9 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.1148, allocations: 7.922 kB / 397.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.1159, allocations: 0.5323 MB / 398.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.363e-05/0.116, allocations: 96.83 kB / 398.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.558e-05/0.116, allocations: 8 kB / 398.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002001/0.1162, allocations: 32.02 kB / 398.6 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.314e-05/0.1163, allocations: 27.95 kB / 398.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.1163, allocations: 8 kB / 398.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.824e-05/0.1164, allocations: 124.7 kB / 398.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1164, allocations: 0 / 398.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002959/0.1167, allocations: 64 kB / 398.8 MB, free: 13.91 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.001227/0.118, allocations: 1.085 MB / 399.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006183/0.1186, allocations: 332.9 kB / 400.2 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1186, allocations: 0 / 400.2 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003187/0.1189, allocations: 144.4 kB / 400.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003962/0.1193, allocations: 44.16 kB / 400.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003858/0.1232, allocations: 1.903 MB / 402.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003093/0.1235, allocations: 0.748 MB / 403.1 MB, free: 9.539 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001017/0.1236, allocations: 22.28 kB / 403.1 MB, free: 9.516 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.1238, allocations: 79.41 kB / 403.2 MB, free: 9.438 MB / 302.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1238, allocations: 0 / 403.2 MB, free: 9.438 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02298/0.1468, allocations: 4.638 MB / 407.8 MB, free: 4.93 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000329/0.1472, allocations: 217.3 kB / 408 MB, free: 4.684 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.962/2.109, allocations: 0 / 408 MB, free: 4.684 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/linux/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) Environment - environmentSimulation: