Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.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_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",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.005127/0.005127, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.002079/0.00208, allocations: 194.2 kB / 16.67 MB, free: 5.977 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.579/1.579, allocations: 205.1 MB / 222.6 MB, free: 4.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.05111/0.05111, allocations: 8.117 MB / 278 MB, free: 13.04 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.002134/0.002134, allocations: 75.89 kB / 386.2 MB, free: 9.57 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3368, allocations: 48.3 MB / 434.5 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003251/0.3401, allocations: 2.409 MB / 436.9 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00104/0.3411, allocations: 0.684 MB / 437.6 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.3413, allocations: 7.906 kB / 437.6 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.3414, allocations: 39.98 kB / 437.6 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001329/0.3416, allocations: 68.86 kB / 437.7 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002371/0.3418, allocations: 71.69 kB / 437.7 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003261/0.3421, allocations: 300 kB / 438 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001958/0.3423, allocations: 96.67 kB / 438.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.3425, allocations: 116.1 kB / 438.3 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.3427, allocations: 122.4 kB / 438.4 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.653e-05/0.3427, allocations: 23.34 kB / 438.4 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.989e-05/0.3428, allocations: 24.16 kB / 438.4 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.631e-05/0.3428, allocations: 61 kB / 438.5 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.343, allocations: 126.7 kB / 438.6 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003531/0.3433, allocations: 282.2 kB / 438.9 MB, free: 4.617 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3433, allocations: 0.7031 kB / 438.9 MB, free: 4.617 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3433, allocations: 1.344 kB / 438.9 MB, free: 4.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.3434, allocations: 0 / 438.9 MB, free: 4.617 MB / 318.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.0009169/0.3443, allocations: 0.5889 MB / 439.5 MB, free: 4.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.3443, allocations: 9.75 kB / 439.5 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.522e-05/0.3444, allocations: 62.62 kB / 439.5 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.605e-05/0.3444, allocations: 27.59 kB / 439.6 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/0.3447, allocations: 245.4 kB / 439.8 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.3448, allocations: 17.81 kB / 439.8 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.748e-05/0.3448, allocations: 26.27 kB / 439.8 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005404/0.3454, allocations: 223.1 kB / 440.1 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.3454, allocations: 8.984 kB / 440.1 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.51e-05/0.3454, allocations: 14.27 kB / 440.1 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.3454, allocations: 8.438 kB / 440.1 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005876/0.346, allocations: 193.4 kB / 440.3 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009697/0.347, allocations: 0.6724 MB / 441 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007251/0.3478, allocations: 248.2 kB / 441.2 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003286/0.3481, allocations: 127.7 kB / 441.3 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.167e-05/0.3481, allocations: 6.812 kB / 441.3 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004915/0.3486, allocations: 172.3 kB / 441.5 MB, free: 2.941 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 2.205e-06/0.3486, allocations: 3.938 kB / 441.5 MB, free: 2.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002779/0.3514, allocations: 1.195 MB / 442.7 MB, free: 2.207 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/0.3515, allocations: 56.09 kB / 442.8 MB, free: 2.145 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/0.3516, allocations: 180.8 kB / 442.9 MB, free: 2.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.3517, allocations: 32.45 kB / 443 MB, free: 1.984 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.254e-05/0.3518, allocations: 146.7 kB / 443.1 MB, free: 1.855 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.631e-05/0.3518, allocations: 109.6 kB / 443.2 MB, free: 1.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.861e-05/0.3519, allocations: 60.12 kB / 443.3 MB, free: 1.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.352e-05/0.352, allocations: 335.1 kB / 443.6 MB, free: 1.406 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003178/0.3524, allocations: 96.38 kB / 443.7 MB, free: 1.379 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003371/0.3527, allocations: 136.3 kB / 443.8 MB, free: 1.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/0.3541, allocations: 0.5554 MB / 444.4 MB, free: 1.043 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3541, allocations: 0 / 444.4 MB, free: 1.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007454/0.3549, allocations: 356.7 kB / 444.7 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.398e-05/0.3549, allocations: 45.89 kB / 444.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3549, allocations: 1.375 kB / 444.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.3549, allocations: 1.375 kB / 444.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003074/0.3553, allocations: 71.78 kB / 444.8 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.789e-06/0.3553, allocations: 11.38 kB / 444.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.3555, allocations: 27.73 kB / 444.9 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/0.3555, allocations: 8.25 kB / 444.9 MB, free: 0.8203 MB / 318.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: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$PRE.trapezoid.count,$PRE.trapezoid.T_start,$PRE.speedSensor.w,trapezoid.count,trapezoid.T_start,speedSensor.w,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 38 * 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.0002001/0.3557, allocations: 169.3 kB / 445.1 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.351e-05/0.3558, allocations: 26.08 kB / 445.1 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.472e-05/0.3559, allocations: 28.3 kB / 445.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.3559, allocations: 7.938 kB / 445.1 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.3559, allocations: 4.609 kB / 445.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.3559, allocations: 1.359 kB / 445.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001254/0.3572, allocations: 0.7923 MB / 445.9 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.3572, allocations: 0 / 445.9 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003284/0.3575, allocations: 69.16 kB / 446 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.3575, allocations: 1.344 kB / 446 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/0.3575, allocations: 9.203 kB / 446 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.111e-06/0.3576, allocations: 9.281 kB / 446 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3576, allocations: 1.25 kB / 446 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.3587, allocations: 0.5247 MB / 446.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.242e-05/0.3588, allocations: 95.53 kB / 446.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.3588, allocations: 8.844 kB / 446.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002232/0.3591, allocations: 29.38 kB / 446.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.144e-05/0.3592, allocations: 34.11 kB / 446.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.3592, allocations: 7.906 kB / 446.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001315/0.3593, allocations: 139.5 kB / 446.8 MB, free: 15.58 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3593, allocations: 0 / 446.8 MB, free: 15.58 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00033/0.3597, allocations: 63.97 kB / 446.9 MB, free: 15.57 MB / 334.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: 5 ($whenCondition2,$whenCondition1,speedSensor.w,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 (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001514/0.3612, allocations: 1.081 MB / 448 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007933/0.362, allocations: 322.1 kB / 448.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.362, allocations: 0 / 448.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003784/0.3624, allocations: 144.9 kB / 448.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004536/0.3629, allocations: 50.97 kB / 448.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005986/0.3689, allocations: 3.009 MB / 451.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004295/0.3693, allocations: 0.752 MB / 452.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001406/0.3695, allocations: 27.83 kB / 452.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.3696, allocations: 87.72 kB / 452.4 MB, free: 11.69 MB / 334.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3696, allocations: 0 / 452.4 MB, free: 11.69 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02914/0.3988, allocations: 5.41 MB / 457.8 MB, free: 8.934 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.306/8.704, allocations: 6.141 kB / 457.8 MB, free: 8.93 MB / 334.1 MB (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.sim & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1_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_Variation1.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1)