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.00117/0.00117, 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.001637/0.001637, allocations: 197 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.454/1.454, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04273/0.04273, allocations: 8.104 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.001466/0.001467, allocations: 71.91 kB / 337.3 MB, free: 26.42 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08227/0.08375, allocations: 48.3 MB / 385.6 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003683/0.08748, allocations: 2.397 MB / 388 MB, free: 7.656 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009788/0.08849, allocations: 0.6358 MB / 388.6 MB, free: 7.012 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.08861, allocations: 7.938 kB / 388.6 MB, free: 7.004 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001408/0.08877, allocations: 31.66 kB / 388.7 MB, free: 6.973 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001344/0.08891, allocations: 75.28 kB / 388.7 MB, free: 6.898 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002069/0.08913, allocations: 67.91 kB / 388.8 MB, free: 6.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002782/0.08941, allocations: 294.8 kB / 389.1 MB, free: 6.543 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001927/0.08961, allocations: 94.25 kB / 389.2 MB, free: 6.445 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.08976, allocations: 115.6 kB / 389.3 MB, free: 6.332 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001744/0.08994, allocations: 123.5 kB / 389.4 MB, free: 6.211 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.9e-05/0.08999, allocations: 28 kB / 389.4 MB, free: 6.184 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.821e-05/0.09004, allocations: 23.94 kB / 389.5 MB, free: 6.16 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.178e-05/0.09009, allocations: 51.78 kB / 389.5 MB, free: 6.109 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001259/0.09023, allocations: 127.4 kB / 389.6 MB, free: 5.984 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002635/0.09049, allocations: 278.9 kB / 389.9 MB, free: 5.711 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.09051, allocations: 0 / 389.9 MB, free: 5.711 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.09051, allocations: 0 / 389.9 MB, free: 5.711 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.09052, 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.0009743/0.0915, allocations: 0.567 MB / 390.5 MB, free: 5.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.09155, allocations: 12.03 kB / 390.5 MB, free: 5.078 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.97e-05/0.09161, allocations: 58.72 kB / 390.6 MB, free: 5.012 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.259e-05/0.09167, allocations: 28.66 kB / 390.6 MB, free: 4.984 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002665/0.09194, allocations: 245.7 kB / 390.8 MB, free: 4.707 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.09197, allocations: 16.81 kB / 390.8 MB, free: 4.691 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.03e-05/0.09202, allocations: 28.28 kB / 390.9 MB, free: 4.664 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004892/0.09252, allocations: 227.3 kB / 391.1 MB, free: 4.434 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.09255, allocations: 0 / 391.1 MB, free: 4.434 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.41e-05/0.09258, allocations: 12 kB / 391.1 MB, free: 4.422 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.822e-06/0.09259, allocations: 4 kB / 391.1 MB, free: 4.418 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005607/0.09315, allocations: 197.6 kB / 391.3 MB, free: 4.227 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.0942, allocations: 0.7175 MB / 392 MB, free: 3.445 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006964/0.0949, allocations: 249 kB / 392.3 MB, free: 3.195 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002949/0.09521, allocations: 120.7 kB / 392.4 MB, free: 3.078 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.09524, allocations: 4 kB / 392.4 MB, free: 3.074 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004596/0.0957, allocations: 168.2 kB / 392.5 MB, free: 2.898 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.844e-06/0.09572, allocations: 0 / 392.5 MB, free: 2.898 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002376/0.0981, allocations: 1.114 MB / 393.7 MB, free: 1.695 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.09815, allocations: 67.33 kB / 393.7 MB, free: 1.617 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001636/0.09832, allocations: 171.5 kB / 393.9 MB, free: 1.441 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.926e-05/0.09836, allocations: 33.69 kB / 393.9 MB, free: 1.402 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.867e-05/0.09846, allocations: 144.7 kB / 394.1 MB, free: 1.258 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.91e-05/0.09855, allocations: 98.55 kB / 394.2 MB, free: 1.16 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.176e-05/0.09865, allocations: 57.7 kB / 394.2 MB, free: 1.098 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.09877, allocations: 334.8 kB / 394.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002847/0.09906, allocations: 87.94 kB / 394.6 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002983/0.09937, allocations: 121.5 kB / 394.7 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001307/0.1007, allocations: 0.523 MB / 395.3 MB, free: 4 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.1007, allocations: 4 kB / 395.3 MB, free: 0 / 286.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000712/0.1014, allocations: 335.9 kB / 395.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.279e-05/0.1015, allocations: 33.64 kB / 395.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1015, allocations: 3.938 kB / 395.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.1015, allocations: 4 kB / 395.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003012/0.1018, allocations: 67.89 kB / 395.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.1018, allocations: 3.984 kB / 395.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002143/0.102, allocations: 28.02 kB / 395.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.421e-05/0.1021, allocations: 8 kB / 395.7 MB, free: 15.51 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.0001988/0.1023, allocations: 160.4 kB / 395.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.655e-05/0.1023, allocations: 23.66 kB / 395.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.761e-05/0.1024, allocations: 34.64 kB / 396 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.1024, allocations: 4 kB / 396 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1024, allocations: 0 / 396 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.1024, allocations: 0 / 396 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001188/0.1036, allocations: 0.7189 MB / 396.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1036, allocations: 0 / 396.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003115/0.1039, allocations: 67.89 kB / 396.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.104, allocations: 0 / 396.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.104, allocations: 8 kB / 396.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.104, allocations: 64 / 396.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.104, allocations: 8 kB / 396.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.1051, allocations: 0.5048 MB / 397.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.672e-05/0.1051, allocations: 96.95 kB / 397.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.641e-05/0.1052, allocations: 4 kB / 397.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002275/0.1054, allocations: 23.97 kB / 397.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.117e-05/0.1055, allocations: 28 kB / 397.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.603e-05/0.1056, allocations: 15.98 kB / 397.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001207/0.1057, allocations: 132.6 kB / 397.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1057, allocations: 4 kB / 397.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003195/0.106, allocations: 60 kB / 397.6 MB, free: 13.51 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.00131/0.1073, allocations: 1.046 MB / 398.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007112/0.1081, allocations: 316 kB / 399 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1081, allocations: 4.062 kB / 399 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003191/0.1084, allocations: 131.8 kB / 399.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004125/0.1088, allocations: 43.91 kB / 399.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005201/0.114, allocations: 2.904 MB / 402.1 MB, free: 8.926 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.1143, allocations: 0.748 MB / 402.8 MB, free: 8.152 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001037/0.1144, allocations: 26.28 kB / 402.8 MB, free: 8.129 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.1146, allocations: 75.41 kB / 402.9 MB, free: 8.055 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1146, allocations: 0 / 402.9 MB, free: 8.055 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02378/0.1384, allocations: 5.112 MB / 408 MB, free: 3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.725/7.863, allocations: 11.36 kB / 408 MB, free: 2.992 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 & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1)