Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001709/0.001709, allocations: 114.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002051/0.002051, allocations: 209.2 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.522/1.522, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2412/0.2412, allocations: 46.12 MB / 344.3 MB, free: 11.45 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002355/0.002355, allocations: 79.86 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3478, allocations: 62.44 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004587/0.3525, allocations: 2.626 MB / 0.5331 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001699/0.3542, allocations: 0.7292 MB / 0.5339 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002966/0.3546, allocations: 10.41 kB / 0.5339 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002245/0.3548, allocations: 42.09 kB / 0.5339 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002507/0.3551, allocations: 85.45 kB / 0.534 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004003/0.3555, allocations: 99.33 kB / 0.5341 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005222/0.3561, allocations: 347.8 kB / 0.5344 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002211/0.3563, allocations: 75.08 kB / 0.5345 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003012/0.3566, allocations: 135.9 kB / 0.5346 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002068/0.3568, allocations: 132.6 kB / 0.5347 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.333e-05/0.3569, allocations: 22 kB / 0.5348 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.465e-05/0.357, allocations: 24.75 kB / 0.5348 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.784e-05/0.357, allocations: 55.97 kB / 0.5348 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001569/0.3572, allocations: 153.7 kB / 0.535 GB, free: 9.91 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004777/0.3577, allocations: 306.5 kB / 0.5353 GB, free: 9.695 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3577, allocations: 1.031 kB / 0.5353 GB, free: 9.695 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3577, allocations: 0 / 0.5353 GB, free: 9.695 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.3577, allocations: 4 kB / 0.5353 GB, free: 9.691 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001089/0.3588, allocations: 0.5911 MB / 0.5359 GB, free: 9.156 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.3589, allocations: 10.31 kB / 0.5359 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.886e-05/0.359, allocations: 62.14 kB / 0.5359 GB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002643/0.3592, allocations: 55.84 kB / 0.536 GB, free: 9.066 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005085/0.3597, allocations: 277 kB / 0.5363 GB, free: 8.793 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.3598, allocations: 19.06 kB / 0.5363 GB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.237e-05/0.3598, allocations: 33.36 kB / 0.5363 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005589/0.3604, allocations: 284.9 kB / 0.5366 GB, free: 8.562 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.818e-05/0.3605, allocations: 6.828 kB / 0.5366 GB, free: 8.559 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.694e-05/0.3605, allocations: 13.58 kB / 0.5366 GB, free: 8.547 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.3605, allocations: 7.344 kB / 0.5366 GB, free: 8.547 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004425/0.3609, allocations: 175.8 kB / 0.5368 GB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001953/0.3629, allocations: 1.314 MB / 0.5381 GB, free: 7.246 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000513/0.3635, allocations: 254.7 kB / 0.5383 GB, free: 7.062 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002178/0.3637, allocations: 95.7 kB / 0.5384 GB, free: 7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.3637, allocations: 3.25 kB / 0.5384 GB, free: 7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.3638, allocations: 41.75 kB / 0.5384 GB, free: 6.953 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.405e-06/0.3638, allocations: 0 / 0.5384 GB, free: 6.953 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002996/0.3668, allocations: 1.582 MB / 0.54 GB, free: 5.539 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.3669, allocations: 140 kB / 0.5401 GB, free: 5.375 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002688/0.3672, allocations: 228.7 kB / 0.5403 GB, free: 5.207 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.819e-05/0.3672, allocations: 31.02 kB / 0.5404 GB, free: 5.172 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.3674, allocations: 180 kB / 0.5405 GB, free: 5.008 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.3675, allocations: 123.8 kB / 0.5406 GB, free: 4.898 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.3676, allocations: 71.69 kB / 0.5407 GB, free: 4.848 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.3678, allocations: 337.8 kB / 0.541 GB, free: 4.516 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002673/0.3681, allocations: 100.5 kB / 0.5411 GB, free: 4.473 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003816/0.3685, allocations: 244.4 kB / 0.5414 GB, free: 4.246 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006948/0.3692, allocations: 367.5 kB / 0.5417 GB, free: 3.957 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.3692, allocations: 2.219 kB / 0.5417 GB, free: 3.957 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008361/0.37, allocations: 396.5 kB / 0.5421 GB, free: 3.754 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.3701, allocations: 10.28 kB / 0.5421 GB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.3701, allocations: 8.062 kB / 0.5421 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/0.3701, allocations: 7.281 kB / 0.5421 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003828/0.3705, allocations: 101.7 kB / 0.5422 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.052e-05/0.3705, allocations: 11.11 kB / 0.5422 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002763/0.3708, allocations: 30.11 kB / 0.5423 GB, free: 3.703 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.956e-05/0.3708, allocations: 13.5 kB / 0.5423 GB, free: 3.703 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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.0002143/0.3711, allocations: 164.8 kB / 0.5424 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.3712, allocations: 34.06 kB / 0.5425 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.127e-05/0.3713, allocations: 31.48 kB / 0.5425 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.3713, allocations: 4.5 kB / 0.5425 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.3713, allocations: 1.156 kB / 0.5425 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-06/0.3713, allocations: 5.078 kB / 0.5425 GB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001783/0.3731, allocations: 0.9842 MB / 0.5435 GB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.291e-06/0.3731, allocations: 0.9375 kB / 0.5435 GB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003786/0.3735, allocations: 77.66 kB / 0.5435 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.077e-06/0.3735, allocations: 3.688 kB / 0.5435 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.892e-05/0.3736, allocations: 15.41 kB / 0.5436 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.3736, allocations: 2.562 kB / 0.5436 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.3736, allocations: 1.25 kB / 0.5436 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.3748, allocations: 0.7258 MB / 0.5443 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.375, allocations: 102.4 kB / 0.5444 GB, free: 1.984 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.457e-05/0.375, allocations: 15.27 kB / 0.5444 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00029/0.3753, allocations: 25.48 kB / 0.5444 GB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.642e-05/0.3754, allocations: 23.84 kB / 0.5444 GB, free: 1.945 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-05/0.3754, allocations: 15.28 kB / 0.5444 GB, free: 1.938 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002215/0.3757, allocations: 158.9 kB / 0.5446 GB, free: 1.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3757, allocations: 0 / 0.5446 GB, free: 1.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005838/0.3763, allocations: 68.62 kB / 0.5447 GB, free: 1.809 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * 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.001526/0.3778, allocations: 1.276 MB / 0.5459 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008429/0.3787, allocations: 283.7 kB / 0.5462 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3787, allocations: 0 / 0.5462 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000311/0.379, allocations: 126.1 kB / 0.5463 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006836/0.3797, allocations: 49.59 kB / 0.5463 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005089/0.3848, allocations: 3.525 MB / 0.5498 GB, free: 12.99 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004432/0.3853, allocations: 0.7758 MB / 0.5505 GB, free: 12.19 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001654/0.3854, allocations: 35.52 kB / 0.5506 GB, free: 12.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.3856, allocations: 95.41 kB / 0.5507 GB, free: 12.06 MB / 414.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3856, allocations: 0 / 0.5507 GB, free: 12.06 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03099/0.4166, allocations: 5.364 MB / 0.5559 GB, free: 6.785 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.854/9.271, allocations: 15.14 kB / 0.5559 GB, free: 6.773 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe 2>&1)