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.007457/0.007457, allocations: 97.36 kB / 15.73 MB, free: 5.988 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.001996/0.001996, allocations: 188 kB / 16.67 MB, free: 5.918 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.618/1.618, allocations: 205.1 MB / 222.6 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.05166/0.05166, allocations: 8.113 MB / 278 MB, free: 13.07 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.00319/0.00319, allocations: 78.39 kB / 386.2 MB, free: 9.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.3448, allocations: 48.3 MB / 434.5 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003552/0.3484, allocations: 2.395 MB / 436.9 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001218/0.3497, allocations: 0.6298 MB / 437.5 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.3499, allocations: 7.781 kB / 437.5 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001905/0.3501, allocations: 39.31 kB / 437.5 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001856/0.3503, allocations: 70.42 kB / 437.6 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003408/0.3507, allocations: 72.08 kB / 437.7 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004414/0.3511, allocations: 294.5 kB / 438 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002639/0.3514, allocations: 100.3 kB / 438.1 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002001/0.3516, allocations: 110.9 kB / 438.2 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.3518, allocations: 121.9 kB / 438.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.548e-05/0.3519, allocations: 22.38 kB / 438.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.731e-05/0.3519, allocations: 23.34 kB / 438.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.329e-05/0.352, allocations: 57.64 kB / 438.4 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001647/0.3522, allocations: 129.1 kB / 438.5 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005094/0.3527, allocations: 274.7 kB / 438.8 MB, free: 4.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.3527, allocations: 1.375 kB / 438.8 MB, free: 4.672 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.037e-06/0.3527, allocations: 4 kB / 438.8 MB, free: 4.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.3527, allocations: 0 / 438.8 MB, free: 4.668 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.001016/0.3538, allocations: 0.5757 MB / 439.4 MB, free: 4.172 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.3538, allocations: 9.516 kB / 439.4 MB, free: 4.172 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.382e-05/0.3539, allocations: 58.3 kB / 439.4 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.77e-05/0.354, allocations: 31.73 kB / 439.5 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003694/0.3544, allocations: 253 kB / 439.7 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.933e-05/0.3544, allocations: 18.7 kB / 439.7 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.88e-05/0.3545, allocations: 24.47 kB / 439.8 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000575/0.355, allocations: 222.7 kB / 440 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.3551, allocations: 1.875 kB / 440 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.233e-05/0.3551, allocations: 6.625 kB / 440 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.3551, allocations: 5.594 kB / 440 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006115/0.3557, allocations: 210.6 kB / 440.2 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009816/0.3567, allocations: 0.7128 MB / 440.9 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007308/0.3575, allocations: 241 kB / 441.1 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003004/0.3578, allocations: 118.3 kB / 441.3 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.3578, allocations: 2.219 kB / 441.3 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004412/0.3583, allocations: 170.8 kB / 441.4 MB, free: 2.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 2.354e-06/0.3583, allocations: 0 / 441.4 MB, free: 2.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002613/0.3609, allocations: 1.122 MB / 442.6 MB, free: 2.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.3609, allocations: 60.47 kB / 442.6 MB, free: 2.184 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.3611, allocations: 179.6 kB / 442.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.3611, allocations: 32.48 kB / 442.8 MB, free: 2.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.805e-05/0.3612, allocations: 141.5 kB / 443 MB, free: 1.895 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.394e-05/0.3613, allocations: 106.2 kB / 443.1 MB, free: 1.809 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.264e-05/0.3614, allocations: 50.47 kB / 443.1 MB, free: 1.777 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.284e-05/0.3615, allocations: 334.8 kB / 443.4 MB, free: 1.453 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002858/0.3617, allocations: 95.3 kB / 443.5 MB, free: 1.426 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003065/0.3621, allocations: 129.3 kB / 443.7 MB, free: 1.371 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/0.3634, allocations: 0.5044 MB / 444.2 MB, free: 1.133 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.3634, allocations: 0 / 444.2 MB, free: 1.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007273/0.3641, allocations: 337.1 kB / 444.5 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/0.3642, allocations: 41.89 kB / 444.5 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.3642, allocations: 0 / 444.5 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.3642, allocations: 2.219 kB / 444.5 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003122/0.3645, allocations: 64.91 kB / 444.6 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.3646, allocations: 10 kB / 444.6 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002293/0.3648, allocations: 24.19 kB / 444.6 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.39e-05/0.3648, allocations: 10.25 kB / 444.6 MB, free: 0.9258 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: 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.0002215/0.3651, allocations: 165.3 kB / 444.8 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.637e-05/0.3651, allocations: 26.23 kB / 444.8 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.317e-05/0.3652, allocations: 28.52 kB / 444.9 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.3652, allocations: 3.016 kB / 444.9 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.3652, allocations: 1.062 kB / 444.9 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3652, allocations: 1.266 kB / 444.9 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.3664, allocations: 0.7135 MB / 445.6 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.3664, allocations: 1.562 kB / 445.6 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003413/0.3668, allocations: 65.52 kB / 445.6 MB, free: 268 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.441e-06/0.3668, allocations: 5.547 kB / 445.6 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.296e-05/0.3668, allocations: 12.47 kB / 445.7 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.3668, allocations: 2.062 kB / 445.7 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/0.3668, allocations: 5.25 kB / 445.7 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.3679, allocations: 0.5056 MB / 446.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.185e-05/0.368, allocations: 95.8 kB / 446.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.459e-05/0.3681, allocations: 7.828 kB / 446.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.3683, allocations: 26.83 kB / 446.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.181e-05/0.3684, allocations: 28.58 kB / 446.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.403e-05/0.3684, allocations: 14.19 kB / 446.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001286/0.3686, allocations: 130.5 kB / 446.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3686, allocations: 0 / 446.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003407/0.3689, allocations: 61.44 kB / 446.5 MB, free: 15.74 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: 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.00144/0.3704, allocations: 1.039 MB / 447.6 MB, free: 14.94 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000779/0.3712, allocations: 302 kB / 447.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3712, allocations: 0 / 447.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003665/0.3716, allocations: 138.9 kB / 448 MB, free: 14.78 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004578/0.372, allocations: 62.61 kB / 448.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005993/0.378, allocations: 2.914 MB / 451 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004589/0.3785, allocations: 0.7474 MB / 451.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.3787, allocations: 22.88 kB / 451.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.3788, allocations: 76.84 kB / 451.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of SimCode: time 2.755e-06/0.3788, allocations: 0 / 451.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03422/0.413, allocations: 5.209 MB / 457 MB, free: 9.293 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.193/8.606, allocations: 9.672 kB / 457 MB, free: 9.285 MB / 334.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)