Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 119 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002101/0.002101, allocations: 190.9 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.522/1.522, allocations: 225.6 MB / 249.8 MB, free: 3.738 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2341/0.2341, allocations: 44.92 MB / 349.6 MB, free: 1.742 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 67.75 kB / 491.8 MB, free: 30.16 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1237, allocations: 64.25 MB / 0.543 GB, free: 4.129 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004921/0.1286, allocations: 2.836 MB / 0.5458 GB, free: 1.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001539/0.1301, allocations: 0.7012 MB / 0.5464 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002857/0.1304, allocations: 11.94 kB / 0.5465 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002664/0.1307, allocations: 55.44 kB / 0.5465 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003361/0.131, allocations: 130.8 kB / 0.5466 GB, free: 376 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000374/0.1314, allocations: 87.89 kB / 0.5467 GB, free: 288 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006031/0.132, allocations: 442 kB / 0.5471 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002675/0.1322, allocations: 97.77 kB / 0.5472 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000294/0.1325, allocations: 167.4 kB / 0.5474 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002632/0.1328, allocations: 183.1 kB / 0.5476 GB, free: 15.4 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.83e-05/0.1329, allocations: 32 kB / 0.5476 GB, free: 15.37 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6e-05/0.1329, allocations: 32 kB / 0.5476 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.698e-05/0.133, allocations: 79.7 kB / 0.5477 GB, free: 15.26 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000222/0.1332, allocations: 195.1 kB / 0.5479 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006142/0.1338, allocations: 438.1 kB / 0.5483 GB, free: 14.64 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1339, allocations: 4 kB / 0.5483 GB, free: 14.64 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1339, allocations: 0 / 0.5483 GB, free: 14.64 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.275e-05/0.1339, allocations: 0 / 0.5483 GB, free: 14.64 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001244/0.1351, allocations: 0.6509 MB / 0.5489 GB, free: 13.94 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/0.1352, allocations: 8.031 kB / 0.549 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001143/0.1353, allocations: 70.72 kB / 0.549 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.503e-05/0.1354, allocations: 44.7 kB / 0.5491 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005236/0.1359, allocations: 292.4 kB / 0.5493 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.773e-05/0.1359, allocations: 29.38 kB / 0.5494 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.742e-05/0.136, allocations: 40.33 kB / 0.5494 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006572/0.1367, allocations: 394.3 kB / 0.5498 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.833e-05/0.1367, allocations: 11.95 kB / 0.5498 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.603e-05/0.1367, allocations: 19.94 kB / 0.5498 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.1367, allocations: 12 kB / 0.5498 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004612/0.1372, allocations: 219.7 kB / 0.55 GB, free: 12.74 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002569/0.1398, allocations: 1.712 MB / 0.5517 GB, free: 10.92 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004956/0.1403, allocations: 258.3 kB / 0.552 GB, free: 10.61 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001785/0.1404, allocations: 94.08 kB / 0.552 GB, free: 10.49 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.733e-05/0.1405, allocations: 4 kB / 0.5521 GB, free: 10.49 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.1405, allocations: 42.5 kB / 0.5521 GB, free: 10.44 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.324e-06/0.1405, allocations: 0 / 0.5521 GB, free: 10.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007148/0.1412, allocations: 273.8 kB / 0.5524 GB, free: 10.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000145/0.1414, allocations: 217.6 kB / 0.5526 GB, free: 9.902 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000302/0.1417, allocations: 274.9 kB / 0.5528 GB, free: 9.621 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.1417, allocations: 30.08 kB / 0.5529 GB, free: 9.586 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.1419, allocations: 247.9 kB / 0.5531 GB, free: 9.336 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.867e-05/0.142, allocations: 119.1 kB / 0.5532 GB, free: 9.219 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002017/0.1422, allocations: 102.2 kB / 0.5533 GB, free: 9.113 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002085/0.1424, allocations: 350.7 kB / 0.5536 GB, free: 8.762 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002169/0.1426, allocations: 101.2 kB / 0.5537 GB, free: 8.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000496/0.1431, allocations: 420.9 kB / 0.5541 GB, free: 8.094 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007851/0.1439, allocations: 0.578 MB / 0.5547 GB, free: 7.355 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.944e-06/0.1439, allocations: 4 kB / 0.5547 GB, free: 7.352 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009042/0.1448, allocations: 0.5173 MB / 0.5552 GB, free: 6.828 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.1448, allocations: 12 kB / 0.5552 GB, free: 6.816 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/0.1448, allocations: 20.03 kB / 0.5552 GB, free: 6.797 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.322e-05/0.1449, allocations: 16 kB / 0.5553 GB, free: 6.781 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004514/0.1453, allocations: 147.7 kB / 0.5554 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.763e-05/0.1453, allocations: 19.94 kB / 0.5554 GB, free: 6.617 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003248/0.1457, allocations: 71.5 kB / 0.5555 GB, free: 6.547 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.909e-05/0.1457, allocations: 28 kB / 0.5555 GB, free: 6.52 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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.000213/0.1459, allocations: 181.5 kB / 0.5557 GB, free: 6.332 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.1461, allocations: 32.23 kB / 0.5557 GB, free: 6.301 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.175e-05/0.1462, allocations: 37.78 kB / 0.5557 GB, free: 6.266 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.1462, allocations: 4 kB / 0.5557 GB, free: 6.262 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.1462, allocations: 4 kB / 0.5558 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.1462, allocations: 11.91 kB / 0.5558 GB, free: 6.246 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001479/0.1477, allocations: 0.6553 MB / 0.5564 GB, free: 5.527 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.1477, allocations: 64 / 0.5564 GB, free: 5.527 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004616/0.1481, allocations: 91.89 kB / 0.5565 GB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.347e-06/0.1481, allocations: 4 kB / 0.5565 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.893e-05/0.1482, allocations: 11.98 kB / 0.5565 GB, free: 5.422 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-06/0.1482, allocations: 7.938 kB / 0.5565 GB, free: 5.414 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/0.1482, allocations: 7.938 kB / 0.5565 GB, free: 5.406 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008494/0.149, allocations: 0.8223 MB / 0.5573 GB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.1491, allocations: 108.9 kB / 0.5574 GB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.109e-05/0.1492, allocations: 23.94 kB / 0.5575 GB, free: 4.402 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003381/0.1495, allocations: 11.98 kB / 0.5575 GB, free: 4.391 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.087e-05/0.1496, allocations: 23.91 kB / 0.5575 GB, free: 4.367 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.1496, allocations: 12 kB / 0.5575 GB, free: 4.355 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001816/0.1498, allocations: 182 kB / 0.5577 GB, free: 4.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1498, allocations: 0 / 0.5577 GB, free: 4.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008089/0.1506, allocations: 103.8 kB / 0.5578 GB, free: 4.078 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * 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.001216/0.1518, allocations: 1.371 MB / 0.5591 GB, free: 2.668 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005671/0.1524, allocations: 282 kB / 0.5594 GB, free: 2.395 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1524, allocations: 7.938 kB / 0.5594 GB, free: 2.387 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001603/0.1525, allocations: 84.77 kB / 0.5595 GB, free: 2.305 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009824/0.1535, allocations: 71.2 kB / 0.5595 GB, free: 2.238 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006491/0.16, allocations: 4.931 MB / 0.5643 GB, free: 12.87 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004986/0.1605, allocations: 0.795 MB / 0.5651 GB, free: 12.05 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001749/0.1607, allocations: 47.25 kB / 0.5652 GB, free: 12 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.1608, allocations: 111.4 kB / 0.5653 GB, free: 11.89 MB / 430.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1608, allocations: 0 / 0.5653 GB, free: 11.89 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03368/0.1945, allocations: 6.659 MB / 0.5718 GB, free: 5.359 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.843/9.037, allocations: 18.28 kB / 0.5718 GB, free: 5.352 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.31021684827283]