Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.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.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001416/0.001421, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001483/0.001483, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.9 MB, free: 10.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2249/0.2249, allocations: 46.12 MB / 344.3 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 77.88 kB / 417.5 MB, free: 20.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1231, allocations: 62.44 MB / 479.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.004472/0.1276, allocations: 2.906 MB / 482.8 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0016/0.1292, allocations: 0.7867 MB / 483.6 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003272/0.1296, allocations: 8 kB / 483.6 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002448/0.1299, allocations: 51.56 kB / 483.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003514/0.1303, allocations: 103.2 kB / 483.8 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003656/0.1307, allocations: 99.89 kB / 483.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005057/0.1312, allocations: 430.4 kB / 484.3 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000293/0.1315, allocations: 167 kB / 484.5 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003383/0.1318, allocations: 163.3 kB / 484.6 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002531/0.1321, allocations: 179.2 kB / 484.8 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.211e-05/0.1322, allocations: 28 kB / 484.8 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001072/0.1323, allocations: 35.98 kB / 484.9 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.455e-05/0.1323, allocations: 71.64 kB / 484.9 MB, free: 0.668 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000206/0.1326, allocations: 202.9 kB / 485.1 MB, free: 480 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003332/0.1329, allocations: 331.4 kB / 485.5 MB, free: 148 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1329, allocations: 0 / 485.5 MB, free: 148 kB / 350.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.1329, allocations: 0 / 485.5 MB, free: 148 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.1329, allocations: 0 / 485.5 MB, free: 148 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001077/0.134, allocations: 0.6784 MB / 486.1 MB, free: 15.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.1341, allocations: 12.03 kB / 486.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003482/0.1344, allocations: 64.44 kB / 486.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000352/0.1348, allocations: 295.5 kB / 486.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.871e-05/0.1348, allocations: 29.38 kB / 486.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.372e-05/0.1349, allocations: 40.38 kB / 486.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006597/0.1356, allocations: 389.3 kB / 486.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.1356, allocations: 3.906 kB / 486.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.377e-05/0.1356, allocations: 16 kB / 487 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.1357, allocations: 8 kB / 487 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005032/0.1362, allocations: 248.3 kB / 487.2 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001674/0.1378, allocations: 1.109 MB / 488.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000581/0.1384, allocations: 351.5 kB / 488.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002974/0.1388, allocations: 178.4 kB / 488.8 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.072e-05/0.1388, allocations: 4 kB / 488.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.1388, allocations: 42.56 kB / 488.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 2.194e-06/0.1389, allocations: 0 / 488.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=57): time 0.003962/0.1428, allocations: 2.45 MB / 491.3 MB, free: 9.785 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.698e-05/0.1429, allocations: 114.8 kB / 491.4 MB, free: 9.648 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002544/0.1432, allocations: 238.7 kB / 491.7 MB, free: 9.402 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.776e-05/0.1432, allocations: 37.7 kB / 491.7 MB, free: 9.359 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.1433, allocations: 184.6 kB / 491.9 MB, free: 9.176 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.1435, allocations: 201 kB / 492.1 MB, free: 8.977 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.1436, allocations: 86.25 kB / 492.2 MB, free: 8.887 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1438, allocations: 350.7 kB / 492.5 MB, free: 8.535 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002678/0.1441, allocations: 129 kB / 492.6 MB, free: 8.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003282/0.1444, allocations: 227.8 kB / 492.9 MB, free: 8.152 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006234/0.145, allocations: 402 kB / 493.3 MB, free: 7.723 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.145, allocations: 3.938 kB / 493.3 MB, free: 7.719 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001092/0.1461, allocations: 0.5576 MB / 493.8 MB, free: 7.145 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.646e-05/0.1462, allocations: 4 kB / 493.8 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.1462, allocations: 7.984 kB / 493.8 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004272/0.1466, allocations: 122.6 kB / 494 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004168/0.1471, allocations: 99.81 kB / 494.1 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004199/0.1513, allocations: 4.685 MB / 498.7 MB, free: 1.828 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002829/0.1516, allocations: 24.02 kB / 498.8 MB, free: 1.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.323e-05/0.1516, allocations: 16 kB / 498.8 MB, free: 1.789 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000233/0.1519, allocations: 173.1 kB / 498.9 MB, free: 1.613 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.152, allocations: 39.56 kB / 499 MB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.457e-05/0.1521, allocations: 42.23 kB / 499 MB, free: 1.531 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1521, allocations: 12 kB / 499 MB, free: 1.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.398e-05/0.1521, allocations: 4 kB / 499 MB, free: 1.516 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.1522, allocations: 3.984 kB / 499 MB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002136/0.1543, allocations: 1.339 MB / 0.4887 GB, free: 100 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.767e-06/0.1543, allocations: 7.938 kB / 0.4887 GB, free: 92 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004224/0.1548, allocations: 91.89 kB / 0.4888 GB, free: 0 / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003275/0.1551, allocations: 90.61 kB / 0.4888 GB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.128e-05/0.1552, allocations: 15.98 kB / 0.4889 GB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003468/0.1586, allocations: 4.115 MB / 0.4929 GB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.1587, allocations: 4.031 kB / 0.4929 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001423/0.1601, allocations: 0.9252 MB / 0.4938 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.1602, allocations: 108.6 kB / 0.4939 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.739e-05/0.1603, allocations: 16.06 kB / 0.4939 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002892/0.1606, allocations: 15.98 kB / 0.4939 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.1607, allocations: 39.94 kB / 0.494 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.15e-05/0.1608, allocations: 16.19 kB / 0.494 GB, free: 10.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001762/0.161, allocations: 178 kB / 0.4941 GB, free: 10.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.161, allocations: 0 / 0.4941 GB, free: 10.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007521/0.1617, allocations: 124 kB / 0.4943 GB, free: 9.898 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.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 (48): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001542/0.1619, allocations: 119 kB / 0.4944 GB, free: 9.773 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001423/0.1633, allocations: 0.7701 MB / 0.4951 GB, free: 8.965 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.1633, allocations: 0 / 0.4951 GB, free: 8.965 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008291/0.1642, allocations: 0.573 MB / 0.4957 GB, free: 8.355 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007542/0.165, allocations: 59.2 kB / 0.4957 GB, free: 8.301 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/0.1671, allocations: 1.3 MB / 0.497 GB, free: 6.949 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004567/0.1676, allocations: 0.8202 MB / 0.4978 GB, free: 6.098 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.1677, allocations: 39.44 kB / 0.4978 GB, free: 6.062 MB / 382.1 MB Notification: Performance of SimCode: time 6.32e-07/0.1677, allocations: 0 / 0.4978 GB, free: 6.062 MB / 382.1 MB Notification: Performance of Templates: time 0.2075/0.3752, allocations: 9.407 MB / 0.507 GB, free: 40.25 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches