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.001443/0.001443, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 195.9 kB / 16.53 MB, free: 6.664 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.259/1.259, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04201/0.04201, allocations: 8.106 MB / 277.9 MB, free: 13.16 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.001423/0.001424, allocations: 64.52 kB / 337.3 MB, free: 26.42 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07312/0.07456, allocations: 48.3 MB / 385.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003463/0.07806, allocations: 2.397 MB / 388 MB, free: 7.656 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009335/0.07901, allocations: 0.6436 MB / 388.6 MB, free: 7.004 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.07912, allocations: 4 kB / 388.6 MB, free: 7 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001289/0.07926, allocations: 31.66 kB / 388.7 MB, free: 6.969 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.0794, allocations: 75.28 kB / 388.7 MB, free: 6.895 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001962/0.07961, allocations: 67.84 kB / 388.8 MB, free: 6.828 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002758/0.07989, allocations: 290.8 kB / 389.1 MB, free: 6.543 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001746/0.08007, allocations: 94.25 kB / 389.2 MB, free: 6.445 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.0802, allocations: 119.5 kB / 389.3 MB, free: 6.328 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.08034, allocations: 115.5 kB / 389.4 MB, free: 6.215 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.787e-05/0.08039, allocations: 24 kB / 389.4 MB, free: 6.191 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.113e-05/0.08044, allocations: 24 kB / 389.5 MB, free: 6.168 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.1e-05/0.08049, allocations: 67.69 kB / 389.5 MB, free: 6.102 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001113/0.08061, allocations: 123.4 kB / 389.6 MB, free: 5.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002387/0.08085, allocations: 275 kB / 389.9 MB, free: 5.711 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.08086, allocations: 0 / 389.9 MB, free: 5.711 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.08087, allocations: 0 / 389.9 MB, free: 5.711 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.08088, allocations: 0 / 389.9 MB, free: 5.711 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.0009223/0.08181, allocations: 0.567 MB / 390.5 MB, free: 5.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.08185, allocations: 8.031 kB / 390.5 MB, free: 5.082 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.412e-05/0.08191, allocations: 66.67 kB / 390.6 MB, free: 5.008 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.131e-05/0.08196, allocations: 24.66 kB / 390.6 MB, free: 4.984 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002255/0.08219, allocations: 245.8 kB / 390.8 MB, free: 4.707 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.08222, allocations: 16.8 kB / 390.8 MB, free: 4.691 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.668e-05/0.08227, allocations: 28.28 kB / 390.9 MB, free: 4.664 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004799/0.08276, allocations: 223.4 kB / 391.1 MB, free: 4.438 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.08278, allocations: 7.984 kB / 391.1 MB, free: 4.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.08281, allocations: 8 kB / 391.1 MB, free: 4.422 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.08283, allocations: 8 kB / 391.1 MB, free: 4.414 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005692/0.0834, allocations: 197.5 kB / 391.3 MB, free: 4.223 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009326/0.08434, allocations: 0.7137 MB / 392 MB, free: 3.445 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006936/0.08505, allocations: 249 kB / 392.3 MB, free: 3.195 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002966/0.08536, allocations: 116.8 kB / 392.4 MB, free: 3.078 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.832e-05/0.08538, allocations: 4 kB / 392.4 MB, free: 3.074 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004222/0.08581, allocations: 168.2 kB / 392.5 MB, free: 2.898 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.733e-06/0.08583, allocations: 4 kB / 392.5 MB, free: 2.895 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002342/0.08817, allocations: 1.125 MB / 393.7 MB, free: 1.68 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.08822, allocations: 51.41 kB / 393.7 MB, free: 1.617 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.08837, allocations: 183.5 kB / 393.9 MB, free: 1.43 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.0884, allocations: 29.7 kB / 393.9 MB, free: 1.395 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.083e-05/0.08849, allocations: 140.7 kB / 394.1 MB, free: 1.254 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.509e-05/0.08856, allocations: 94.55 kB / 394.2 MB, free: 1.16 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.045e-05/0.08865, allocations: 53.7 kB / 394.2 MB, free: 1.102 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.08875, allocations: 338.8 kB / 394.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002823/0.08904, allocations: 95.92 kB / 394.6 MB, free: 0.668 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002821/0.08933, allocations: 117.5 kB / 394.7 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/0.09062, allocations: 0.523 MB / 395.3 MB, free: 0 / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.09063, allocations: 0 / 395.3 MB, free: 0 / 286.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007098/0.09134, allocations: 339.8 kB / 395.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.12e-05/0.09139, allocations: 41.62 kB / 395.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.0914, allocations: 0 / 395.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.09141, allocations: 0 / 395.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002944/0.09171, allocations: 71.89 kB / 395.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.09173, allocations: 4 kB / 395.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002127/0.09195, allocations: 23.97 kB / 395.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.929e-05/0.09198, allocations: 8 kB / 395.7 MB, free: 15.5 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.0001822/0.09217, allocations: 160.2 kB / 395.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.809e-05/0.09221, allocations: 31.64 kB / 395.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.626e-05/0.09227, allocations: 26.66 kB / 396 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.09228, allocations: 4 kB / 396 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.09229, allocations: 0 / 396 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.0923, allocations: 3.984 kB / 396 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.09339, allocations: 0.7228 MB / 396.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.0934, allocations: 0 / 396.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003266/0.09374, allocations: 59.95 kB / 396.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.09375, allocations: 4 kB / 396.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.09378, allocations: 4 kB / 396.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.09379, allocations: 11.92 kB / 396.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.09379, allocations: 3.938 kB / 396.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009784/0.09478, allocations: 0.5088 MB / 397.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.127e-05/0.09484, allocations: 88.92 kB / 397.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.755e-05/0.09488, allocations: 8 kB / 397.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002359/0.09513, allocations: 24.02 kB / 397.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.614e-05/0.09521, allocations: 31.91 kB / 397.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.09523, allocations: 7.984 kB / 397.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.669e-05/0.09533, allocations: 128.7 kB / 397.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.293e-06/0.09534, allocations: 0 / 397.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003082/0.09566, allocations: 71.94 kB / 397.6 MB, free: 13.5 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.001252/0.09692, allocations: 1.046 MB / 398.7 MB, free: 12.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007187/0.09765, allocations: 312 kB / 399 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.09766, allocations: 0 / 399 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003427/0.09801, allocations: 143.9 kB / 399.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004059/0.09843, allocations: 47.89 kB / 399.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005096/0.1035, allocations: 2.893 MB / 402.1 MB, free: 8.922 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.1038, allocations: 0.748 MB / 402.8 MB, free: 8.148 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.911e-05/0.1039, allocations: 18.3 kB / 402.8 MB, free: 8.133 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.104, allocations: 83.41 kB / 402.9 MB, free: 8.051 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.104, allocations: 3.938 kB / 402.9 MB, free: 8.047 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.021/0.125, allocations: 5.114 MB / 408 MB, free: 2.988 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.246/8.371, allocations: 7.297 kB / 408 MB, free: 2.984 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)