Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001485/0.001485, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001934/0.001934, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2374/0.2374, allocations: 46.1 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 75.88 kB / 480.8 MB, free: 4.637 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3181/0.3198, allocations: 62.43 MB / 0.5305 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007937/0.3277, allocations: 5.781 MB / 0.5361 GB, free: 8.871 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005009/0.3328, allocations: 2.358 MB / 0.5384 GB, free: 6.938 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001229/0.3341, allocations: 40.91 kB / 0.5385 GB, free: 6.922 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007374/0.3348, allocations: 225.8 kB / 0.5387 GB, free: 6.723 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008316/0.3357, allocations: 185.7 kB / 0.5389 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001435/0.3372, allocations: 470.7 kB / 0.5393 GB, free: 6.172 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001655/0.3388, allocations: 1.122 MB / 0.5404 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001026/0.3399, allocations: 0.6127 MB / 0.541 GB, free: 5.094 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000664/0.3406, allocations: 374.4 kB / 0.5414 GB, free: 4.867 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005868/0.3412, allocations: 391.2 kB / 0.5417 GB, free: 4.582 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001774/0.3414, allocations: 95.66 kB / 0.5418 GB, free: 4.582 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003807/0.3417, allocations: 160.2 kB / 0.542 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002158/0.342, allocations: 211.7 kB / 0.5422 GB, free: 4.379 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006421/0.3426, allocations: 475.6 kB / 0.5426 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001575/0.3442, allocations: 1.285 MB / 0.5439 GB, free: 3.066 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.3442, allocations: 0 / 0.5439 GB, free: 3.066 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3442, allocations: 1.25 kB / 0.5439 GB, free: 3.066 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.337e-05/0.3443, allocations: 0 / 0.5439 GB, free: 3.066 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001868/0.3461, allocations: 1.16 MB / 0.545 GB, free: 2.125 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.3462, allocations: 9.969 kB / 0.545 GB, free: 2.125 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001604/0.3464, allocations: 140.8 kB / 0.5452 GB, free: 2.008 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003035/0.3467, allocations: 120.3 kB / 0.5453 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/0.3477, allocations: 0.6028 MB / 0.5459 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.499e-05/0.3478, allocations: 66.28 kB / 0.5459 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.3479, allocations: 95.64 kB / 0.546 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/0.3495, allocations: 0.8889 MB / 0.5469 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.775e-05/0.3495, allocations: 3.25 kB / 0.5469 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.057e-05/0.3496, allocations: 41.19 kB / 0.5469 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.055e-05/0.3497, allocations: 29.09 kB / 0.547 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.3507, allocations: 0.5307 MB / 0.5475 GB, free: 184 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00378/0.3545, allocations: 3.605 MB / 0.551 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000586/0.3551, allocations: 228.9 kB / 0.5512 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001782/0.3553, allocations: 108.8 kB / 0.5513 GB, free: 12.07 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002185/0.3555, allocations: 247.3 kB / 0.5516 GB, free: 11.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.3556, allocations: 38.56 kB / 0.5516 GB, free: 11.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 2.003e-06/0.3556, allocations: 0 / 0.5516 GB, free: 11.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002633/0.3582, allocations: 1.302 MB / 0.5529 GB, free: 10.33 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.3583, allocations: 59.34 kB / 0.5529 GB, free: 10.26 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004603/0.3588, allocations: 405.8 kB / 0.5533 GB, free: 9.859 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.3588, allocations: 29.7 kB / 0.5534 GB, free: 9.824 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000292/0.3591, allocations: 487.5 kB / 0.5538 GB, free: 9.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.3592, allocations: 142.8 kB / 0.554 GB, free: 9.199 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.3594, allocations: 98.2 kB / 0.554 GB, free: 9.098 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.3595, allocations: 362.7 kB / 0.5544 GB, free: 8.734 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002277/0.3598, allocations: 113.1 kB / 0.5545 GB, free: 8.621 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003419/0.3601, allocations: 310 kB / 0.5548 GB, free: 8.234 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006003/0.3607, allocations: 463.6 kB / 0.5552 GB, free: 7.695 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.3608, allocations: 0 / 0.5552 GB, free: 7.695 MB / 414.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008986/0.3617, allocations: 0.5173 MB / 0.5557 GB, free: 7.168 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.3617, allocations: 12.16 kB / 0.5558 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.3617, allocations: 4 kB / 0.5558 GB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002225/0.3619, allocations: 36.84 kB / 0.5558 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003978/0.3624, allocations: 131.8 kB / 0.5559 GB, free: 6.984 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004176/0.3628, allocations: 0.5524 MB / 0.5565 GB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002673/0.3631, allocations: 20 kB / 0.5565 GB, free: 6.387 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.363e-05/0.3631, allocations: 24 kB / 0.5565 GB, free: 6.363 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003396/0.3635, allocations: 233.6 kB / 0.5567 GB, free: 6.125 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.633e-05/0.3636, allocations: 55.61 kB / 0.5568 GB, free: 6.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006574/0.3642, allocations: 327 kB / 0.5571 GB, free: 5.738 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.3642, allocations: 4 kB / 0.5571 GB, free: 5.734 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.3643, allocations: 3.938 kB / 0.5571 GB, free: 5.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.922e-06/0.3643, allocations: 7.938 kB / 0.5571 GB, free: 5.723 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.3659, allocations: 1.059 MB / 0.5581 GB, free: 4.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.3659, allocations: 4 kB / 0.5581 GB, free: 4.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003736/0.3663, allocations: 80.06 kB / 0.5582 GB, free: 4.508 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001562/0.3664, allocations: 36.78 kB / 0.5583 GB, free: 4.469 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.689e-05/0.3665, allocations: 11.98 kB / 0.5583 GB, free: 4.457 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003516/0.3668, allocations: 0.5446 MB / 0.5588 GB, free: 3.887 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3669, allocations: 0 / 0.5588 GB, free: 3.887 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008458/0.3677, allocations: 0.557 MB / 0.5593 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001562/0.3679, allocations: 120.8 kB / 0.5595 GB, free: 3.152 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.357e-05/0.3679, allocations: 8 kB / 0.5595 GB, free: 3.145 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.3681, allocations: 12.09 kB / 0.5595 GB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.34e-05/0.3682, allocations: 35.92 kB / 0.5595 GB, free: 3.098 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.369e-05/0.3682, allocations: 12 kB / 0.5595 GB, free: 3.086 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000313/0.3685, allocations: 275.1 kB / 0.5598 GB, free: 2.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3685, allocations: 0 / 0.5598 GB, free: 2.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006309/0.3692, allocations: 123.9 kB / 0.5599 GB, free: 2.699 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001168/0.3704, allocations: 1.131 MB / 0.561 GB, free: 1.52 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007029/0.3711, allocations: 325.1 kB / 0.5613 GB, free: 1.203 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.3711, allocations: 4.312 kB / 0.5613 GB, free: 1.199 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002742/0.3714, allocations: 147.8 kB / 0.5615 GB, free: 1.055 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000587/0.372, allocations: 70.31 kB / 0.5615 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00642/0.3784, allocations: 4.838 MB / 0.5663 GB, free: 11.88 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005862/0.379, allocations: 0.9603 MB / 0.5672 GB, free: 10.89 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002087/0.3793, allocations: 56.53 kB / 0.5672 GB, free: 10.83 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003456/0.3796, allocations: 299.3 kB / 0.5675 GB, free: 10.54 MB / 430.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3796, allocations: 0 / 0.5675 GB, free: 10.54 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03268/0.4123, allocations: 9.401 MB / 0.5767 GB, free: 1.27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.53, allocations: 19.05 kB / 0.5767 GB, free: 1.254 MB / 430.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches