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.001181/0.001181, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001168/0.001168, allocations: 191.3 kB / 16.25 MB, free: 6.633 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.201/1.201, allocations: 205.1 MB / 222.1 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04016/0.04016, allocations: 8.1 MB / 277.6 MB, free: 13.34 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.001292/0.001292, allocations: 59.91 kB / 336.8 MB, free: 26.75 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07766/0.07897, allocations: 48.29 MB / 385.1 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.005017/0.08403, allocations: 2.45 MB / 387.5 MB, free: 7.938 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.08525, allocations: 0.632 MB / 388.2 MB, free: 7.297 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.08545, allocations: 7.938 kB / 388.2 MB, free: 7.289 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.0856, allocations: 23.78 kB / 388.2 MB, free: 7.266 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/0.08581, allocations: 59.48 kB / 388.3 MB, free: 7.207 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002254/0.08605, allocations: 59.94 kB / 388.3 MB, free: 7.148 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003355/0.0864, allocations: 286.8 kB / 388.6 MB, free: 6.867 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.08659, allocations: 106.2 kB / 388.7 MB, free: 6.758 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001358/0.08673, allocations: 111.5 kB / 388.8 MB, free: 6.648 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001344/0.08687, allocations: 123.5 kB / 388.9 MB, free: 6.527 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.791e-05/0.08691, allocations: 24 kB / 389 MB, free: 6.504 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.634e-05/0.08695, allocations: 24 kB / 389 MB, free: 6.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.869e-05/0.08701, allocations: 51.78 kB / 389 MB, free: 6.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.08712, allocations: 131.4 kB / 389.2 MB, free: 6.301 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002379/0.08736, allocations: 271 kB / 389.4 MB, free: 6.035 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.08737, allocations: 0 / 389.4 MB, free: 6.035 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.08738, allocations: 3.938 kB / 389.4 MB, free: 6.031 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.08739, allocations: 0 / 389.4 MB, free: 6.031 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.0008459/0.08824, allocations: 0.5708 MB / 390 MB, free: 5.406 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.08829, allocations: 12.02 kB / 390 MB, free: 5.395 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.773e-05/0.08834, allocations: 62.73 kB / 390.1 MB, free: 5.324 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.972e-05/0.0884, allocations: 24.66 kB / 390.1 MB, free: 5.301 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002198/0.08862, allocations: 244.6 kB / 390.3 MB, free: 5.023 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.08865, allocations: 12.81 kB / 390.3 MB, free: 5.012 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.498e-05/0.0887, allocations: 32.22 kB / 390.4 MB, free: 4.98 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004629/0.08917, allocations: 223.3 kB / 390.6 MB, free: 4.754 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.08919, allocations: 4 kB / 390.6 MB, free: 4.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.087e-05/0.08921, allocations: 8 kB / 390.6 MB, free: 4.742 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.08923, allocations: 12 kB / 390.6 MB, free: 4.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005043/0.08974, allocations: 193.6 kB / 390.8 MB, free: 4.543 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000875/0.09062, allocations: 0.7175 MB / 391.5 MB, free: 3.762 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006178/0.09125, allocations: 248.6 kB / 391.8 MB, free: 3.512 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002627/0.09152, allocations: 120.4 kB / 391.9 MB, free: 3.395 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.09155, allocations: 4 kB / 391.9 MB, free: 3.391 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003878/0.09195, allocations: 164.3 kB / 392 MB, free: 3.219 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.593e-06/0.09196, allocations: 0 / 392 MB, free: 3.219 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002098/0.09406, allocations: 1.126 MB / 393.2 MB, free: 2.004 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.09411, allocations: 59.41 kB / 393.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.09425, allocations: 179.5 kB / 393.4 MB, free: 1.75 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.09428, allocations: 33.7 kB / 393.4 MB, free: 1.711 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.973e-05/0.09436, allocations: 140.6 kB / 393.6 MB, free: 1.57 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.867e-05/0.09443, allocations: 98.55 kB / 393.7 MB, free: 1.473 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.284e-05/0.09452, allocations: 53.7 kB / 393.7 MB, free: 1.414 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.09467, allocations: 334.8 kB / 394.1 MB, free: 1.078 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004046/0.09509, allocations: 95.94 kB / 394.1 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003934/0.09549, allocations: 121.5 kB / 394.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001539/0.09704, allocations: 0.5233 MB / 394.8 MB, free: 320 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.09706, allocations: 0 / 394.8 MB, free: 320 kB / 286.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007828/0.09785, allocations: 335.8 kB / 395.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/0.0979, allocations: 37.64 kB / 395.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.09792, allocations: 4.031 kB / 395.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.09794, allocations: 0 / 395.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003352/0.09828, allocations: 79.88 kB / 395.2 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.0983, allocations: 4 kB / 395.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002335/0.09854, allocations: 19.98 kB / 395.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.555e-05/0.09857, allocations: 15.92 kB / 395.3 MB, free: 15.81 MB / 302.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.0002027/0.09878, allocations: 151.8 kB / 395.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.893e-05/0.09883, allocations: 27.66 kB / 395.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.721e-05/0.0989, allocations: 26.64 kB / 395.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.09892, allocations: 4 kB / 395.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.09893, allocations: 4 kB / 395.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.09894, allocations: 0 / 395.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00124/0.1002, allocations: 0.7109 MB / 396.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1002, allocations: 4 kB / 396.2 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003599/0.1006, allocations: 63.89 kB / 396.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.1006, allocations: 4 kB / 396.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.057e-05/0.1006, allocations: 4 kB / 396.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.1006, allocations: 4 kB / 396.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1006, allocations: 0 / 396.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/0.1017, allocations: 0.5085 MB / 396.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.888e-05/0.1018, allocations: 88.92 kB / 396.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.097e-05/0.1018, allocations: 12 kB / 396.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000262/0.1021, allocations: 23.97 kB / 396.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.604e-05/0.1022, allocations: 32 kB / 396.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.1022, allocations: 4 kB / 396.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001015/0.1023, allocations: 132.6 kB / 397.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1023, allocations: 0 / 397.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003482/0.1027, allocations: 60 kB / 397.1 MB, free: 13.84 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.001348/0.104, allocations: 1.05 MB / 398.2 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006863/0.1047, allocations: 316.2 kB / 398.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1047, allocations: 4 kB / 398.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002975/0.105, allocations: 140.5 kB / 398.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003905/0.1054, allocations: 51.8 kB / 398.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00456/0.11, allocations: 2.998 MB / 401.7 MB, free: 9.141 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.1103, allocations: 0.7441 MB / 402.4 MB, free: 8.371 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.915e-05/0.1104, allocations: 26.28 kB / 402.4 MB, free: 8.348 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.1105, allocations: 75.41 kB / 402.5 MB, free: 8.273 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1105, allocations: 4 kB / 402.5 MB, free: 8.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01536/0.1259, allocations: 4.922 MB / 407.4 MB, free: 3.453 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/0.126, allocations: 237.4 kB / 407.7 MB, free: 3.191 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.674/1.8, allocations: 0 / 407.7 MB, free: 3.191 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)