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.0008496/0.0008496, allocations: 96.5 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00085/0.0008502, allocations: 207.8 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1934/0.1934, allocations: 46.18 MB / 345.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002717/0.0002719, allocations: 8 kB / 420.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1202, allocations: 63.55 MB / 483.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003138/0.1234, allocations: 2.525 MB / 486.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00153/0.1249, allocations: 0.7557 MB / 487 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00027/0.1252, allocations: 11.94 kB / 487 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001997/0.1254, allocations: 39.7 kB / 487.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003536/0.1258, allocations: 111.1 kB / 487.2 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003643/0.1262, allocations: 83.91 kB / 487.2 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005076/0.1267, allocations: 425.9 kB / 487.7 MB, free: 220 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002476/0.1269, allocations: 117.1 kB / 487.8 MB, free: 104 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003465/0.1273, allocations: 143.4 kB / 487.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002909/0.1276, allocations: 167.2 kB / 488.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.171e-05/0.1277, allocations: 20 kB / 488.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.1278, allocations: 28 kB / 488.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.775e-05/0.1279, allocations: 63.69 kB / 488.2 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002297/0.1281, allocations: 204.8 kB / 488.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003382/0.1285, allocations: 319.3 kB / 488.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1285, allocations: 0 / 488.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1285, allocations: 0 / 488.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.604e-05/0.1285, allocations: 0 / 488.7 MB, free: 15.17 MB / 366.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.0009386/0.1295, allocations: 0.5851 MB / 489.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.1295, allocations: 12.88 kB / 489.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002936/0.1298, allocations: 64.44 kB / 489.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003273/0.1302, allocations: 279.5 kB / 489.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.064e-05/0.1302, allocations: 37.38 kB / 489.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.822e-05/0.1303, allocations: 44.28 kB / 489.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006627/0.131, allocations: 402.5 kB / 490.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.126e-05/0.131, allocations: 7.906 kB / 490.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.131, allocations: 19.94 kB / 490.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.1311, allocations: 12 kB / 490.1 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004346/0.1315, allocations: 215.8 kB / 490.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002234/0.1337, allocations: 1.738 MB / 492.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004263/0.1342, allocations: 270.3 kB / 492.4 MB, free: 11.22 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.1344, allocations: 102 kB / 492.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.213e-05/0.1344, allocations: 8.062 kB / 492.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.1344, allocations: 46.5 kB / 492.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.533e-06/0.1344, allocations: 0 / 492.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006704/0.1351, allocations: 281.4 kB / 492.8 MB, free: 10.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.174e-05/0.1352, allocations: 209.6 kB / 493 MB, free: 10.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002537/0.1355, allocations: 275.2 kB / 493.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.1355, allocations: 33.7 kB / 493.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.1357, allocations: 239.2 kB / 493.5 MB, free: 9.938 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.263e-05/0.1357, allocations: 122.2 kB / 493.6 MB, free: 9.816 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.335e-05/0.1358, allocations: 49.7 kB / 493.7 MB, free: 9.762 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.1359, allocations: 350.7 kB / 494 MB, free: 9.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.1361, allocations: 105.2 kB / 494.1 MB, free: 9.309 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003837/0.1365, allocations: 432.8 kB / 494.6 MB, free: 8.723 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006612/0.1372, allocations: 0.5741 MB / 495.1 MB, free: 7.988 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.246e-06/0.1372, allocations: 4 kB / 495.1 MB, free: 7.984 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008399/0.1381, allocations: 0.5368 MB / 495.7 MB, free: 7.441 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.1381, allocations: 8 kB / 495.7 MB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.006e-05/0.1381, allocations: 12 kB / 495.7 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.1382, allocations: 16 kB / 495.7 MB, free: 7.406 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004074/0.1386, allocations: 151.7 kB / 495.9 MB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.305e-05/0.1386, allocations: 23.88 kB / 495.9 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003013/0.1389, allocations: 75.7 kB / 496 MB, free: 7.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.708e-05/0.139, allocations: 32 kB / 496 MB, free: 7.129 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.0001654/0.1391, allocations: 177.5 kB / 496.2 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.1393, allocations: 31.62 kB / 496.2 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.211e-05/0.1394, allocations: 33.83 kB / 496.2 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.1394, allocations: 4 kB / 496.2 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.1394, allocations: 4 kB / 496.2 MB, free: 6.875 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.1394, allocations: 3.984 kB / 496.2 MB, free: 6.871 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.1406, allocations: 0.6519 MB / 496.9 MB, free: 6.156 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.1406, allocations: 4 kB / 496.9 MB, free: 6.152 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004257/0.141, allocations: 87.95 kB / 497 MB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.1411, allocations: 7.922 kB / 497 MB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.9e-05/0.1411, allocations: 12 kB / 497 MB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.196e-05/0.1411, allocations: 15.94 kB / 497 MB, free: 6.031 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1411, allocations: 0 / 497 MB, free: 6.031 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007481/0.1419, allocations: 0.8385 MB / 497.9 MB, free: 5.164 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.375e-05/0.142, allocations: 108.8 kB / 498 MB, free: 5.039 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.777e-05/0.142, allocations: 16 kB / 498 MB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003324/0.1424, allocations: 15.92 kB / 498 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.641e-05/0.1424, allocations: 19.97 kB / 498 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.1424, allocations: 12 kB / 498 MB, free: 4.977 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001594/0.1426, allocations: 186 kB / 498.2 MB, free: 4.797 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.1426, allocations: 0 / 498.2 MB, free: 4.797 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007161/0.1433, allocations: 99.84 kB / 498.3 MB, free: 4.699 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.0001298/0.1435, allocations: 111.1 kB / 498.4 MB, free: 4.578 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005295/0.144, allocations: 302.2 kB / 498.7 MB, free: 4.285 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.144, allocations: 0 / 498.7 MB, free: 4.285 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.1442, allocations: 96.39 kB / 498.8 MB, free: 4.191 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.1453, allocations: 72.45 kB / 498.9 MB, free: 4.125 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002494/0.1478, allocations: 1.97 MB / 0.4891 GB, free: 2.098 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005226/0.1483, allocations: 0.7953 MB / 0.4899 GB, free: 1.277 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.864e-05/0.1484, allocations: 35.36 kB / 0.4899 GB, free: 1.242 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1484, allocations: 4 kB / 0.4899 GB, free: 1.238 MB / 366.1 MB Notification: Performance of Templates: time 0.006938/0.1553, allocations: 4.085 MB / 0.4939 GB, free: 13.16 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches