Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001587/0.001587, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0019/0.0019, allocations: 210.4 kB / 18.58 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.46/1.46, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2316/0.2316, allocations: 46.11 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 75.03 kB / 417.6 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1468, allocations: 62.44 MB / 480 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.003866/0.1508, allocations: 1.671 MB / 481.7 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000429/0.1512, allocations: 103.6 kB / 481.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.1514, allocations: 4 kB / 481.8 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.672e-05/0.1515, allocations: 11.86 kB / 481.8 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001875/0.1517, allocations: 39.62 kB / 481.8 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001812/0.1519, allocations: 27.97 kB / 481.9 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000199/0.1521, allocations: 131.4 kB / 482 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.1523, allocations: 29.06 kB / 482 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.159e-05/0.1524, allocations: 47.84 kB / 482.1 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.782e-05/0.1525, allocations: 47.78 kB / 482.1 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.572e-05/0.1525, allocations: 16 kB / 482.1 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.561e-05/0.1526, allocations: 8 kB / 482.1 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.045e-05/0.1526, allocations: 23.92 kB / 482.2 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.635e-05/0.1527, allocations: 59.72 kB / 482.2 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001738/0.1529, allocations: 119.9 kB / 482.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.1529, allocations: 0 / 482.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.967e-06/0.1529, allocations: 3.984 kB / 482.3 MB, free: 2.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.1529, allocations: 0 / 482.3 MB, free: 2.965 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005583/0.1535, allocations: 411.3 kB / 482.7 MB, free: 2.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.1535, allocations: 12.03 kB / 482.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.343e-05/0.1536, allocations: 16.75 kB / 482.8 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002119/0.1538, allocations: 188.2 kB / 483 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.1538, allocations: 8.609 kB / 483 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.598e-05/0.1539, allocations: 16.28 kB / 483 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002422/0.1541, allocations: 129.6 kB / 483.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.1541, allocations: 192 / 483.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.82e-05/0.1542, allocations: 7.938 kB / 483.1 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.1542, allocations: 4 kB / 483.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001246/0.1543, allocations: 67.89 kB / 483.2 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008254/0.1551, allocations: 0.5333 MB / 483.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/0.1553, allocations: 93.16 kB / 483.8 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.531e-05/0.1554, allocations: 25.72 kB / 483.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.1554, allocations: 3.938 kB / 483.8 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.622e-05/0.1554, allocations: 34.56 kB / 483.9 MB, free: 1.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.312e-06/0.1554, allocations: 0 / 483.9 MB, free: 1.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006572/0.1561, allocations: 313.4 kB / 484.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.695e-05/0.1562, allocations: 77.11 kB / 484.3 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.1563, allocations: 121.8 kB / 484.4 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.1563, allocations: 25.7 kB / 484.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.106e-05/0.1564, allocations: 127.6 kB / 484.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.104e-05/0.1564, allocations: 31.55 kB / 484.6 MB, free: 480 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.628e-05/0.1565, allocations: 29.72 kB / 484.6 MB, free: 444 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.1566, allocations: 322.8 kB / 484.9 MB, free: 112 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.176e-05/0.1567, allocations: 20 kB / 484.9 MB, free: 92 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/0.1568, allocations: 92.56 kB / 485 MB, free: 15.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.1569, allocations: 124.4 kB / 485.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.157, allocations: 0 / 485.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002503/0.1572, allocations: 163.1 kB / 485.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.1572, allocations: 8.25 kB / 485.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.1572, allocations: 4 kB / 485.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001944/0.1574, allocations: 45.58 kB / 485.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.874e-05/0.1575, allocations: 23.98 kB / 485.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001933/0.1595, allocations: 2.727 MB / 488.1 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.38e-05/0.1596, allocations: 15.88 kB / 488.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.1596, allocations: 12.16 kB / 488.1 MB, free: 12.53 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001194/0.1597, allocations: 129.8 kB / 488.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.611e-05/0.1598, allocations: 7.906 kB / 488.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.761e-05/0.1598, allocations: 11.84 kB / 488.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1598, allocations: 0 / 488.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1598, allocations: 4 kB / 488.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.1598, allocations: 0 / 488.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002632/0.1601, allocations: 201.5 kB / 488.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1601, allocations: 8 kB / 488.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.322e-05/0.1602, allocations: 16 kB / 488.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001029/0.1603, allocations: 33.7 kB / 488.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.1603, allocations: 3.938 kB / 488.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002156/0.1625, allocations: 2.733 MB / 491.3 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.1625, allocations: 4.031 kB / 491.3 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004321/0.163, allocations: 304.5 kB / 491.6 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.25e-05/0.163, allocations: 85.05 kB / 491.6 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.163, allocations: 7.938 kB / 491.7 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.891e-05/0.1631, allocations: 4 kB / 491.7 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.547e-05/0.1632, allocations: 8.031 kB / 491.7 MB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.1632, allocations: 8 kB / 491.7 MB, free: 8.582 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.498e-05/0.1632, allocations: 95.64 kB / 491.8 MB, free: 8.488 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1632, allocations: 4 kB / 491.8 MB, free: 8.484 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003608/0.1636, allocations: 39.84 kB / 491.8 MB, free: 8.445 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * 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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001163/0.1637, allocations: 98.19 kB / 491.9 MB, free: 8.344 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004686/0.1642, allocations: 317.7 kB / 492.2 MB, free: 8.008 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1642, allocations: 0 / 492.2 MB, free: 8.008 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002432/0.1645, allocations: 257.3 kB / 492.5 MB, free: 7.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004828/0.165, allocations: 24.97 kB / 492.5 MB, free: 7.711 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007695/0.1657, allocations: 489 kB / 493 MB, free: 7.203 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.166, allocations: 0.7084 MB / 493.7 MB, free: 6.469 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.883e-05/0.1661, allocations: 12.86 kB / 493.7 MB, free: 6.457 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.088e-05/0.1661, allocations: 11.44 kB / 493.7 MB, free: 6.449 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1661, allocations: 0 / 493.7 MB, free: 6.449 MB / 366.1 MB Notification: Performance of Templates: time 0.004232/0.1704, allocations: 1.504 MB / 495.2 MB, free: 4.953 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches