Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestMove.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.TestMove,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestMove",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestMove,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestMove",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001272/0.001272, allocations: 117.2 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001354/0.001354, allocations: 204.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.363/1.363, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2167/0.2167, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002968/0.002968, allocations: 71.88 kB / 480.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3338, allocations: 62.43 MB / 0.5305 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestMove): time 0.008673/0.3425, allocations: 7.464 MB / 0.5378 GB, free: 7.781 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007305/0.3498, allocations: 3.359 MB / 0.5411 GB, free: 5.191 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00148/0.3514, allocations: 37.47 kB / 0.5411 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001891/0.3533, allocations: 0.8027 MB / 0.5419 GB, free: 4.621 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003891/0.3572, allocations: 1.305 MB / 0.5432 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00165/0.3589, allocations: 0.5263 MB / 0.5437 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004155/0.3631, allocations: 2.618 MB / 0.5462 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002021/0.3651, allocations: 1.221 MB / 0.5474 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001471/0.3666, allocations: 0.7666 MB / 0.5482 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001876/0.3685, allocations: 1.121 MB / 0.5493 GB, free: 14.66 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000571/0.3691, allocations: 143.9 kB / 0.5494 GB, free: 14.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002156/0.3712, allocations: 0.9205 MB / 0.5503 GB, free: 13.6 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001363/0.3726, allocations: 1.005 MB / 0.5513 GB, free: 12.59 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002119/0.3748, allocations: 1.203 MB / 0.5525 GB, free: 11.38 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006022/0.3808, allocations: 4.049 MB / 0.5564 GB, free: 7.316 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3808, allocations: 4 kB / 0.5564 GB, free: 7.312 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3808, allocations: 0 / 0.5564 GB, free: 7.312 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001102/0.381, allocations: 0 / 0.5564 GB, free: 7.312 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 954 * Number of variables: 954 Notification: Performance of Generate backend data structure: time 0.006265/0.3872, allocations: 3.03 MB / 0.5594 GB, free: 4.219 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.3873, allocations: 12.03 kB / 0.5594 GB, free: 4.207 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006169/0.3879, allocations: 462.5 kB / 0.5598 GB, free: 3.746 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006145/0.3941, allocations: 1.672 MB / 0.5615 GB, free: 2.07 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003281/0.3974, allocations: 1.559 MB / 0.563 GB, free: 480 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.252e-05/0.3975, allocations: 123.4 kB / 0.5631 GB, free: 356 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003879/0.3979, allocations: 171.7 kB / 0.5633 GB, free: 184 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009427/0.4073, allocations: 6.456 MB / 0.5696 GB, free: 9.191 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.808e-05/0.4075, allocations: 27.75 kB / 0.5696 GB, free: 9.164 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002413/0.4077, allocations: 83.89 kB / 0.5697 GB, free: 9.082 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002415/0.4101, allocations: 1.433 MB / 0.5711 GB, free: 7.645 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0101/0.4202, allocations: 5.736 MB / 0.5767 GB, free: 1.914 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03047/0.4507, allocations: 26.77 MB / 0.6028 GB, free: 6.293 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004261/0.455, allocations: 2.153 MB / 0.6049 GB, free: 3.992 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001301/0.4564, allocations: 1.035 MB / 0.6059 GB, free: 2.945 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002011/0.4566, allocations: 174.5 kB / 0.6061 GB, free: 2.738 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.4566, allocations: 50.83 kB / 0.6061 GB, free: 2.68 MB / 462.1 MB Notification: Performance of pre-optimization done (n=100): time 3.376e-06/0.4567, allocations: 0 / 0.6061 GB, free: 2.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=112): time 0.01655/0.4732, allocations: 6.499 MB / 0.6125 GB, free: 12.16 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.401e-05/0.4733, allocations: 148.6 kB / 0.6126 GB, free: 11.99 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003943/0.4773, allocations: 2.902 MB / 0.6155 GB, free: 9.074 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001647/0.4775, allocations: 37.7 kB / 0.6155 GB, free: 9.031 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001348/0.4788, allocations: 2.194 MB / 0.6176 GB, free: 6.816 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004679/0.4793, allocations: 476.5 kB / 0.6181 GB, free: 6.348 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001045/0.4804, allocations: 0.9012 MB / 0.619 GB, free: 5.434 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.4805, allocations: 301.1 kB / 0.6193 GB, free: 5.137 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002053/0.4825, allocations: 1.418 MB / 0.6206 GB, free: 3.711 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00384/0.4864, allocations: 4.287 MB / 0.6248 GB, free: 13.97 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006519/0.4929, allocations: 6.189 MB / 0.6309 GB, free: 6.352 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.082e-05/0.493, allocations: 28 kB / 0.6309 GB, free: 6.324 MB / 494.1 MB Notification: Performance of matching and sorting (n=577) (initialization): time 0.008648/0.5017, allocations: 5.505 MB / 0.6363 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.026e-05/0.5018, allocations: 50.66 kB / 0.6363 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001138/0.5019, allocations: 100 kB / 0.6364 GB, free: 0.668 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001232/0.502, allocations: 139.9 kB / 0.6366 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004179/0.5062, allocations: 1.22 MB / 0.6377 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001745/0.5064, allocations: 203.2 kB / 0.6379 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00272/0.5091, allocations: 239.9 kB / 0.6382 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004315/0.5096, allocations: 288.2 kB / 0.6384 GB, free: 14.59 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * Number of states: 0 () * Number of discrete variables: 18 (world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],ActuatedRevolute1.cylinderColor[3],ActuatedRevolute1.cylinderColor[2],ActuatedRevolute1.cylinderColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (553): * Single equations (assignments): 550 * Array equations: 3 * 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.00207/0.5117, allocations: 1.38 MB / 0.6398 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005037/0.5122, allocations: 254.2 kB / 0.64 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001951/0.5141, allocations: 1.241 MB / 0.6412 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.831e-05/0.5142, allocations: 23.92 kB / 0.6413 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.5142, allocations: 0 / 0.6413 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.5142, allocations: 7.984 kB / 0.6413 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007901/0.5221, allocations: 4.547 MB / 0.6457 GB, free: 7.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.447e-05/0.5222, allocations: 11.88 kB / 0.6457 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001935/0.5241, allocations: 363.9 kB / 0.6461 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-05/0.5241, allocations: 8 kB / 0.6461 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-05/0.5242, allocations: 24 kB / 0.6461 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.324e-05/0.5242, allocations: 15.92 kB / 0.6461 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.451e-06/0.5242, allocations: 8 kB / 0.6461 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00255/0.5268, allocations: 2.172 MB / 0.6483 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005747/0.5274, allocations: 311.3 kB / 0.6485 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003682/0.5278, allocations: 27.98 kB / 0.6486 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.5288, allocations: 55.92 kB / 0.6486 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.5289, allocations: 63.81 kB / 0.6487 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.911e-05/0.529, allocations: 39.97 kB / 0.6487 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00308/0.5321, allocations: 1.827 MB / 0.6505 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.5e-07/0.5321, allocations: 0 / 0.6505 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003364/0.5355, allocations: 0.6171 MB / 0.6511 GB, free: 1.379 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 simulation (90): * Single equations (assignments): 87 * Array equations: 3 * 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.003131/0.5387, allocations: 2.787 MB / 0.6538 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005365/0.544, allocations: 3.278 MB / 0.657 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.5441, allocations: 0 / 0.657 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001141/0.5452, allocations: 0.7884 MB / 0.6578 GB, free: 10.47 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002474/0.5477, allocations: 269.9 kB / 0.6581 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04339/0.5911, allocations: 29.8 MB / 0.6872 GB, free: 8.383 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002458/0.5936, allocations: 2.206 MB / 0.6893 GB, free: 6.148 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003284/0.597, allocations: 1.466 MB / 0.6907 GB, free: 4.676 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001739/0.5987, allocations: 1.077 MB / 0.6918 GB, free: 3.598 MB / 0.545 GB Notification: Performance of SimCode: time 1.242e-06/0.5987, allocations: 4 kB / 0.6918 GB, free: 3.594 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3178/0.9165, allocations: 41.22 MB / 0.7321 GB, free: 181.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.09/18, allocations: 14.12 kB / 0.7321 GB, free: 181.5 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestMove.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestMove.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestMove.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestMove.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.TestMove_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_trunk_ModelicaTest_Rotational_TestMove.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestMove.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestMove_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestMove/TestMove.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestMove.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches