Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.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: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001292/0.001292, allocations: 106.2 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001845/0.001845, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.225/0.225, allocations: 46.11 MB / 343.8 MB, free: 11.73 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 73.59 kB / 417 MB, free: 20.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.122, allocations: 62.44 MB / 479.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004045/0.126, allocations: 2.891 MB / 482.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001365/0.1274, allocations: 0.7751 MB / 483.1 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002375/0.1277, allocations: 8 kB / 483.2 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001965/0.1279, allocations: 39.64 kB / 483.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002619/0.1282, allocations: 107.1 kB / 483.3 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003333/0.1285, allocations: 87.86 kB / 483.4 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005291/0.1291, allocations: 445.9 kB / 483.8 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002689/0.1293, allocations: 141.6 kB / 484 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003389/0.1297, allocations: 163.4 kB / 484.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002182/0.1299, allocations: 183.1 kB / 484.3 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.986e-05/0.13, allocations: 36 kB / 484.3 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.82e-05/0.1301, allocations: 32 kB / 484.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.6e-05/0.1301, allocations: 79.7 kB / 484.4 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001664/0.1303, allocations: 195.1 kB / 484.6 MB, free: 428 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003746/0.1307, allocations: 426.8 kB / 485 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1307, allocations: 0 / 485 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1307, allocations: 0 / 485 MB, free: 0 / 350.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.1307, allocations: 0 / 485 MB, free: 0 / 350.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.000951/0.1317, allocations: 0.6591 MB / 485.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.1317, allocations: 8.031 kB / 485.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002553/0.132, allocations: 60.44 kB / 485.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000301/0.1323, allocations: 279.5 kB / 486 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.1323, allocations: 37.36 kB / 486.1 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.947e-05/0.1324, allocations: 40.38 kB / 486.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006103/0.133, allocations: 402.3 kB / 486.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.139e-05/0.1331, allocations: 11.91 kB / 486.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.588e-05/0.1331, allocations: 12 kB / 486.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.981e-05/0.1332, allocations: 12 kB / 486.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004704/0.1336, allocations: 222.1 kB / 486.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00238/0.136, allocations: 1.73 MB / 488.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004242/0.1365, allocations: 266.3 kB / 488.8 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.1367, allocations: 94.06 kB / 488.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.1367, allocations: 8.234 kB / 488.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.1367, allocations: 46.5 kB / 488.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.413e-06/0.1367, allocations: 0 / 488.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006779/0.1374, allocations: 257.4 kB / 489.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.1375, allocations: 221.5 kB / 489.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002852/0.1378, allocations: 275.2 kB / 489.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/0.1379, allocations: 29.7 kB / 489.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.138, allocations: 239.2 kB / 489.9 MB, free: 10.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.223e-05/0.1381, allocations: 122.4 kB / 490 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.1383, allocations: 98.25 kB / 490.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002185/0.1385, allocations: 346.7 kB / 490.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.1387, allocations: 105.8 kB / 490.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004013/0.1391, allocations: 424.8 kB / 491 MB, free: 9.492 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006788/0.1398, allocations: 0.5703 MB / 491.5 MB, free: 8.762 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.316e-06/0.1398, allocations: 4 kB / 491.5 MB, free: 8.758 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009161/0.1408, allocations: 0.5325 MB / 492.1 MB, free: 8.219 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.1408, allocations: 12 kB / 492.1 MB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.632e-05/0.1408, allocations: 12 kB / 492.1 MB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.739e-05/0.1408, allocations: 16 kB / 492.1 MB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004454/0.1413, allocations: 147.7 kB / 492.3 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.308e-05/0.1413, allocations: 20.44 kB / 492.3 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003545/0.1417, allocations: 71.36 kB / 492.4 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/0.1417, allocations: 32 kB / 492.4 MB, free: 7.914 MB / 366.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.0001999/0.1419, allocations: 173.5 kB / 492.6 MB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/0.1421, allocations: 31.62 kB / 492.6 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.107e-05/0.1422, allocations: 41.83 kB / 492.6 MB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/0.1422, allocations: 7.938 kB / 492.6 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.1422, allocations: 0 / 492.6 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.1422, allocations: 7.984 kB / 492.6 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00139/0.1436, allocations: 0.6475 MB / 493.3 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.1436, allocations: 4 kB / 493.3 MB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004468/0.1441, allocations: 87.88 kB / 493.4 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.1441, allocations: 4 kB / 493.4 MB, free: 6.844 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.817e-05/0.1442, allocations: 11.94 kB / 493.4 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.271e-06/0.1442, allocations: 7.938 kB / 493.4 MB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1442, allocations: 4.062 kB / 493.4 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008785/0.1451, allocations: 0.8307 MB / 494.2 MB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.1452, allocations: 104.8 kB / 494.3 MB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.169e-05/0.1453, allocations: 11.98 kB / 494.3 MB, free: 5.828 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003593/0.1456, allocations: 15.94 kB / 494.4 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.572e-05/0.1457, allocations: 27.91 kB / 494.4 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.1457, allocations: 8.125 kB / 494.4 MB, free: 5.777 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001705/0.1459, allocations: 190 kB / 494.6 MB, free: 5.594 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1459, allocations: 0 / 494.6 MB, free: 5.594 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007647/0.1467, allocations: 103.8 kB / 494.7 MB, free: 5.492 MB / 366.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.0001452/0.1468, allocations: 107.1 kB / 494.8 MB, free: 5.375 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006061/0.1474, allocations: 302.3 kB / 495.1 MB, free: 5.082 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.1475, allocations: 4.375 kB / 495.1 MB, free: 5.078 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.1476, allocations: 91.83 kB / 495.2 MB, free: 4.988 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.1487, allocations: 82.66 kB / 495.3 MB, free: 4.914 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002478/0.1512, allocations: 1.663 MB / 496.9 MB, free: 3.199 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004341/0.1517, allocations: 0.8067 MB / 497.7 MB, free: 2.367 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001885/0.1519, allocations: 39.27 kB / 497.8 MB, free: 2.328 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.696e-05/0.1519, allocations: 39.42 kB / 497.8 MB, free: 2.289 MB / 366.1 MB Notification: Performance of SimCode: time 6.02e-07/0.1519, allocations: 0 / 497.8 MB, free: 2.289 MB / 366.1 MB Notification: Performance of Templates: time 0.006618/0.1586, allocations: 2.872 MB / 0.4889 GB, free: 15.44 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches