Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.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.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",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.001552/0.001551, allocations: 108 kB / 15.61 MB, free: 144 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.001911/0.001912, allocations: 194 kB / 16.53 MB, free: 6.66 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.409/1.409, allocations: 205.1 MB / 222.4 MB, free: 4.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04178/0.04178, allocations: 8.116 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.001488/0.001488, allocations: 71.91 kB / 337.3 MB, free: 26.41 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08445/0.08595, allocations: 48.3 MB / 385.6 MB, free: 10.06 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003521/0.08952, allocations: 1.896 MB / 387.5 MB, free: 8.141 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002954/0.08984, allocations: 143.5 kB / 387.6 MB, free: 8 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.601e-05/0.08991, allocations: 3.938 kB / 387.6 MB, free: 7.996 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.152e-05/0.08998, allocations: 23.78 kB / 387.7 MB, free: 7.973 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.503e-05/0.09008, allocations: 43.56 kB / 387.7 MB, free: 7.93 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001594/0.09025, allocations: 43.95 kB / 387.7 MB, free: 7.887 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001657/0.09042, allocations: 171.3 kB / 387.9 MB, free: 7.719 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.09062, allocations: 77.53 kB / 388 MB, free: 7.637 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.941e-05/0.09069, allocations: 67.78 kB / 388.1 MB, free: 7.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.885e-05/0.09079, allocations: 75.7 kB / 388.1 MB, free: 7.496 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.558e-05/0.09083, allocations: 16 kB / 388.1 MB, free: 7.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.149e-05/0.09087, allocations: 20 kB / 388.2 MB, free: 7.461 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.585e-05/0.09091, allocations: 39.84 kB / 388.2 MB, free: 7.422 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.487e-05/0.091, allocations: 75.67 kB / 388.3 MB, free: 7.348 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002085/0.09122, allocations: 195.5 kB / 388.5 MB, free: 7.156 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.09123, allocations: 0 / 388.5 MB, free: 7.156 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.09123, allocations: 0 / 388.5 MB, free: 7.156 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.09125, allocations: 0 / 388.5 MB, free: 7.156 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0006023/0.09185, allocations: 455 kB / 388.9 MB, free: 6.66 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.0919, allocations: 8.031 kB / 388.9 MB, free: 6.652 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.797e-05/0.09196, allocations: 50.73 kB / 389 MB, free: 6.594 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.239e-05/0.09201, allocations: 20.69 kB / 389 MB, free: 6.574 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/0.09216, allocations: 184.2 kB / 389.2 MB, free: 6.355 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.315e-05/0.09219, allocations: 12.36 kB / 389.2 MB, free: 6.344 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.317e-05/0.09224, allocations: 24.28 kB / 389.2 MB, free: 6.32 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002968/0.09254, allocations: 154.1 kB / 389.4 MB, free: 6.164 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.09256, allocations: 3.938 kB / 389.4 MB, free: 6.16 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.743e-05/0.09259, allocations: 8 kB / 389.4 MB, free: 6.152 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.0926, allocations: 8 kB / 389.4 MB, free: 6.145 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.09279, allocations: 107.8 kB / 389.5 MB, free: 6.039 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009907/0.09379, allocations: 0.6716 MB / 390.2 MB, free: 5.301 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004015/0.0942, allocations: 231.5 kB / 390.4 MB, free: 5.047 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001909/0.0944, allocations: 84.83 kB / 390.5 MB, free: 4.961 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.09443, allocations: 8 kB / 390.5 MB, free: 4.953 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/0.09448, allocations: 30.81 kB / 390.5 MB, free: 4.914 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.332e-06/0.09449, allocations: 0 / 390.5 MB, free: 4.914 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008742/0.09537, allocations: 493.1 kB / 391 MB, free: 4.387 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.09542, allocations: 51.41 kB / 391 MB, free: 4.324 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.09552, allocations: 125.7 kB / 391.2 MB, free: 4.191 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.975e-05/0.09555, allocations: 33.7 kB / 391.2 MB, free: 4.152 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.423e-05/0.09563, allocations: 128.1 kB / 391.3 MB, free: 4.023 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.369e-05/0.09569, allocations: 59.11 kB / 391.4 MB, free: 3.965 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.803e-05/0.09576, allocations: 45.64 kB / 391.4 MB, free: 3.914 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.09589, allocations: 322.8 kB / 391.7 MB, free: 3.59 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.767e-05/0.09597, allocations: 39.92 kB / 391.8 MB, free: 3.551 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.09608, allocations: 94.22 kB / 391.9 MB, free: 3.441 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001694/0.09626, allocations: 129.1 kB / 392 MB, free: 3.297 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.09627, allocations: 0 / 392 MB, free: 3.297 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002616/0.09653, allocations: 185.4 kB / 392.2 MB, free: 3.109 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.09656, allocations: 4 kB / 392.2 MB, free: 3.105 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.09657, allocations: 4 kB / 392.2 MB, free: 3.102 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.09659, allocations: 3.938 kB / 392.2 MB, free: 3.098 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001853/0.09678, allocations: 55.91 kB / 392.2 MB, free: 3.043 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.0968, allocations: 3.938 kB / 392.2 MB, free: 3.039 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.564e-05/0.09687, allocations: 8 kB / 392.2 MB, free: 3.031 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.09689, allocations: 4 kB / 392.2 MB, free: 3.027 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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.0001152/0.09701, allocations: 137.9 kB / 392.4 MB, free: 2.883 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.258e-05/0.09705, allocations: 11.89 kB / 392.4 MB, free: 2.871 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.313e-05/0.09709, allocations: 16.84 kB / 392.4 MB, free: 2.855 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.0971, allocations: 0 / 392.4 MB, free: 2.855 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.09711, allocations: 3.938 kB / 392.4 MB, free: 2.852 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.09712, allocations: 3.984 kB / 392.4 MB, free: 2.848 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006035/0.09773, allocations: 0.4905 MB / 392.9 MB, free: 2.301 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.09775, allocations: 3.938 kB / 392.9 MB, free: 2.297 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001805/0.09793, allocations: 35.92 kB / 392.9 MB, free: 2.262 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.09794, allocations: 0 / 392.9 MB, free: 2.262 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.09796, allocations: 8 kB / 393 MB, free: 2.254 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.09797, allocations: 0 / 393 MB, free: 2.254 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.09798, allocations: 0 / 393 MB, free: 2.254 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003151/0.0983, allocations: 274.8 kB / 393.2 MB, free: 1.973 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.975e-05/0.09837, allocations: 96.86 kB / 393.3 MB, free: 1.859 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.121e-05/0.09839, allocations: 4.031 kB / 393.3 MB, free: 1.855 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.019e-05/0.09847, allocations: 4 kB / 393.3 MB, free: 1.852 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.068e-05/0.0985, allocations: 4 kB / 393.3 MB, free: 1.848 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.09851, allocations: 7.984 kB / 393.3 MB, free: 1.84 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.912e-05/0.09857, allocations: 91.28 kB / 393.4 MB, free: 1.75 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09858, allocations: 3.938 kB / 393.4 MB, free: 1.746 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002598/0.09885, allocations: 36 kB / 393.5 MB, free: 1.711 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.flange_a.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0005836/0.09943, allocations: 0.8096 MB / 394.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002275/0.09967, allocations: 119.9 kB / 394.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.09968, allocations: 3.938 kB / 394.4 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.166e-05/0.09977, allocations: 63.84 kB / 394.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002317/0.1, allocations: 14.75 kB / 394.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002148/0.1022, allocations: 1.992 MB / 396.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.1025, allocations: 0.72 MB / 397.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.715e-05/0.1026, allocations: 13.08 kB / 397.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.35e-05/0.1027, allocations: 43.42 kB / 397.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1027, allocations: 0 / 397.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02085/0.1235, allocations: 2.498 MB / 399.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.525/7.648, allocations: 0 / 399.7 MB, free: 11.31 MB / 302.1 MB (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.sim & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1)