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.0009027/0.0009027, allocations: 94.11 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009474/0.0009475, allocations: 204.9 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2002/0.2002, allocations: 45.91 MB / 344 MB, free: 12.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003041/0.0003041, allocations: 8 kB / 417.9 MB, free: 20.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1333, allocations: 63.46 MB / 481.4 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002998/0.1363, allocations: 2.273 MB / 483.6 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.1377, allocations: 0.7367 MB / 484.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.1379, allocations: 11.94 kB / 484.4 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.268e-05/0.138, allocations: 35.7 kB / 484.4 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002628/0.1383, allocations: 131.6 kB / 484.6 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000291/0.1386, allocations: 67.94 kB / 484.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004002/0.139, allocations: 299.4 kB / 484.9 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002324/0.1392, allocations: 108.1 kB / 485 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002428/0.1395, allocations: 139.5 kB / 485.2 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002139/0.1397, allocations: 163.2 kB / 485.3 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.634e-05/0.1397, allocations: 16 kB / 485.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.679e-05/0.1398, allocations: 24 kB / 485.4 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.301e-05/0.1399, allocations: 67.75 kB / 485.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.122e-05/0.14, allocations: 89.52 kB / 485.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003026/0.1403, allocations: 311.4 kB / 485.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1403, allocations: 3.938 kB / 485.8 MB, free: 1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1403, allocations: 0 / 485.8 MB, free: 1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.1403, allocations: 0 / 485.8 MB, free: 1 MB / 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.0008938/0.1412, allocations: 0.5849 MB / 486.4 MB, free: 376 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.1413, allocations: 8.031 kB / 486.4 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002582/0.1415, allocations: 63.52 kB / 486.5 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003594/0.1419, allocations: 276.1 kB / 486.7 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/0.1419, allocations: 29 kB / 486.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.441e-05/0.142, allocations: 39.91 kB / 486.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006035/0.1426, allocations: 398.1 kB / 487.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.854e-05/0.1427, allocations: 11.91 kB / 487.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.468e-05/0.1427, allocations: 16 kB / 487.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.1427, allocations: 12 kB / 487.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000415/0.1431, allocations: 227.7 kB / 487.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002479/0.1456, allocations: 1.719 MB / 489.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000414/0.1461, allocations: 274.3 kB / 489.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.1461, allocations: 7.984 kB / 489.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.884e-05/0.1462, allocations: 38.56 kB / 489.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 3.707e-06/0.1462, allocations: 0 / 489.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006483/0.1468, allocations: 277 kB / 489.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.1469, allocations: 214 kB / 490 MB, free: 12.49 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002896/0.1472, allocations: 274.9 kB / 490.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.1473, allocations: 33.7 kB / 490.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001894/0.1475, allocations: 235.5 kB / 490.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.1476, allocations: 122.3 kB / 490.6 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-05/0.1476, allocations: 12 kB / 490.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.1478, allocations: 346.8 kB / 491 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.148, allocations: 105.2 kB / 491.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000542/0.1486, allocations: 428.8 kB / 491.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002993/0.1489, allocations: 167.8 kB / 491.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/0.1489, allocations: 4 kB / 491.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008576/0.1498, allocations: 0.5286 MB / 492.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/0.1498, allocations: 16.22 kB / 492.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.1498, allocations: 15.94 kB / 492.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.316e-05/0.1499, allocations: 16 kB / 492.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004359/0.1503, allocations: 151.7 kB / 492.4 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.154e-05/0.1504, allocations: 19.94 kB / 492.4 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003073/0.1507, allocations: 67.42 kB / 492.5 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.74e-05/0.1507, allocations: 32 kB / 492.5 MB, free: 9.758 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001997/0.1509, allocations: 181.5 kB / 492.7 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001524/0.1511, allocations: 35.58 kB / 492.7 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.067e-05/0.1512, allocations: 34.34 kB / 492.8 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.1512, allocations: 4 kB / 492.8 MB, free: 9.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.1512, allocations: 0 / 492.8 MB, free: 9.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.1512, allocations: 7.984 kB / 492.8 MB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001299/0.1525, allocations: 0.648 MB / 493.4 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.1525, allocations: 0 / 493.4 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004167/0.153, allocations: 95.88 kB / 493.5 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.797e-06/0.153, allocations: 8.047 kB / 493.5 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.508e-05/0.153, allocations: 12 kB / 493.5 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.153, allocations: 4 kB / 493.5 MB, free: 8.664 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.942e-06/0.153, allocations: 7.984 kB / 493.5 MB, free: 8.656 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008977/0.1539, allocations: 0.9376 MB / 494.5 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.519e-05/0.154, allocations: 100.9 kB / 494.6 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.634e-05/0.1541, allocations: 11.98 kB / 494.6 MB, free: 7.508 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003169/0.1544, allocations: 12 kB / 494.6 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.506e-05/0.1545, allocations: 31.86 kB / 494.6 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.1545, allocations: 12 kB / 494.6 MB, free: 7.453 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001532/0.1547, allocations: 178 kB / 494.8 MB, free: 7.277 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1547, allocations: 0 / 494.8 MB, free: 7.277 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007002/0.1554, allocations: 103.8 kB / 494.9 MB, free: 7.176 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001318/0.1555, allocations: 111.7 kB / 495 MB, free: 7.055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005181/0.156, allocations: 297.9 kB / 495.3 MB, free: 6.766 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.156, allocations: 0 / 495.3 MB, free: 6.766 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001578/0.1562, allocations: 95.77 kB / 495.4 MB, free: 6.672 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006606/0.1569, allocations: 60.08 kB / 495.5 MB, free: 6.613 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.1593, allocations: 1.879 MB / 497.3 MB, free: 4.684 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.1597, allocations: 0.8033 MB / 498.1 MB, free: 3.852 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00016/0.1599, allocations: 47.25 kB / 498.2 MB, free: 3.809 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.517e-05/0.1599, allocations: 27.44 kB / 498.2 MB, free: 3.781 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1599, allocations: 0 / 498.2 MB, free: 3.781 MB / 366.1 MB Notification: Performance of Templates: time 0.005617/0.1656, allocations: 2.648 MB / 0.4891 GB, free: 1.156 MB / 366.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","../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches