Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001093/0.001093, allocations: 183 kB / 16.63 MB, free: 5.137 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.421/1.421, allocations: 205.1 MB / 222.5 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001141/0.00114, allocations: 96.92 kB / 269.9 MB, free: 8.449 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3264/0.3264, allocations: 43.5 MB / 360.7 MB, free: 51.24 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001025/0.001025, allocations: 47.92 kB / 429.2 MB, free: 6.402 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1205, allocations: 57.77 MB / 487 MB, free: 12.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004501/0.1251, allocations: 2.87 MB / 489.9 MB, free: 9.664 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001395/0.1265, allocations: 0.737 MB / 490.6 MB, free: 8.918 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003645/0.1269, allocations: 8 kB / 490.6 MB, free: 8.91 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002632/0.1272, allocations: 39.64 kB / 490.7 MB, free: 8.871 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003686/0.1276, allocations: 111.1 kB / 490.8 MB, free: 8.762 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003271/0.128, allocations: 71.94 kB / 490.8 MB, free: 8.691 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005482/0.1285, allocations: 418 kB / 491.2 MB, free: 8.281 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002642/0.1288, allocations: 117.1 kB / 491.4 MB, free: 8.16 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002779/0.1291, allocations: 155.4 kB / 491.5 MB, free: 8.008 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002673/0.1294, allocations: 175.2 kB / 491.7 MB, free: 7.836 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.082e-05/0.1294, allocations: 20 kB / 491.7 MB, free: 7.816 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.601e-05/0.1295, allocations: 28 kB / 491.7 MB, free: 7.789 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.075e-05/0.1296, allocations: 71.69 kB / 491.8 MB, free: 7.719 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002011/0.1298, allocations: 187.1 kB / 492 MB, free: 7.535 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003666/0.1302, allocations: 410.8 kB / 492.4 MB, free: 7.133 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1302, allocations: 0 / 492.4 MB, free: 7.133 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1302, allocations: 0 / 492.4 MB, free: 7.133 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.589e-05/0.1302, allocations: 0 / 492.4 MB, free: 7.133 MB / 378.7 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.001037/0.1313, allocations: 0.6474 MB / 493 MB, free: 6.438 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.1313, allocations: 15.95 kB / 493 MB, free: 6.422 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.661e-05/0.1314, allocations: 40.47 kB / 493.1 MB, free: 6.383 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000293/0.1317, allocations: 276.5 kB / 493.4 MB, free: 6.074 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/0.1317, allocations: 29.38 kB / 493.4 MB, free: 6.047 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.057e-05/0.1318, allocations: 44.22 kB / 493.4 MB, free: 6.004 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006314/0.1324, allocations: 402.4 kB / 493.8 MB, free: 5.574 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.019e-05/0.1325, allocations: 11.91 kB / 493.8 MB, free: 5.562 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.112e-05/0.1325, allocations: 12 kB / 493.8 MB, free: 5.551 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/0.1325, allocations: 8 kB / 493.9 MB, free: 5.543 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004141/0.133, allocations: 223.3 kB / 494.1 MB, free: 5.328 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002091/0.1351, allocations: 1.73 MB / 495.8 MB, free: 3.492 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003907/0.1355, allocations: 258.4 kB / 496.1 MB, free: 3.176 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001469/0.1356, allocations: 98.02 kB / 496.1 MB, free: 3.059 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.69e-05/0.1357, allocations: 8 kB / 496.2 MB, free: 3.051 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.1357, allocations: 42.55 kB / 496.2 MB, free: 3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.583e-06/0.1357, allocations: 0 / 496.2 MB, free: 3 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.0006404/0.1363, allocations: 265 kB / 496.5 MB, free: 2.734 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.31e-05/0.1364, allocations: 209.6 kB / 496.7 MB, free: 2.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002303/0.1367, allocations: 270.9 kB / 496.9 MB, free: 2.211 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.1367, allocations: 34.08 kB / 497 MB, free: 2.172 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.1368, allocations: 239.2 kB / 497.2 MB, free: 1.934 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.22e-05/0.1369, allocations: 126.4 kB / 497.3 MB, free: 1.809 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.137, allocations: 94.27 kB / 497.4 MB, free: 1.711 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.1372, allocations: 346.7 kB / 497.7 MB, free: 1.363 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.1374, allocations: 101.8 kB / 497.8 MB, free: 1.262 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00035/0.1377, allocations: 432.8 kB / 498.3 MB, free: 0.6836 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005781/0.1383, allocations: 0.5628 MB / 498.8 MB, free: 15.96 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.1383, allocations: 4 kB / 498.8 MB, free: 15.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007333/0.1391, allocations: 0.5249 MB / 499.4 MB, free: 15.43 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.1391, allocations: 8 kB / 499.4 MB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.1391, allocations: 16.09 kB / 499.4 MB, free: 15.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.733e-05/0.1391, allocations: 16 kB / 499.4 MB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003868/0.1395, allocations: 147.7 kB / 499.5 MB, free: 15.24 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.158e-05/0.1396, allocations: 23.88 kB / 499.6 MB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000266/0.1398, allocations: 75.3 kB / 499.6 MB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.238e-05/0.1399, allocations: 32 kB / 499.7 MB, free: 15.11 MB / 394.7 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.0001523/0.14, allocations: 181.5 kB / 499.8 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.1402, allocations: 31.62 kB / 499.9 MB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.409e-05/0.1403, allocations: 37.78 kB / 499.9 MB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1403, allocations: 4 kB / 499.9 MB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.896e-06/0.1403, allocations: 7.984 kB / 499.9 MB, free: 14.84 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.1403, allocations: 0 / 499.9 MB, free: 14.84 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.1414, allocations: 0.6475 MB / 0.4888 GB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.1414, allocations: 4 kB / 0.4888 GB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004019/0.1418, allocations: 91.94 kB / 0.4889 GB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.1418, allocations: 7.938 kB / 0.4889 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.1419, allocations: 12 kB / 0.489 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.195e-06/0.1419, allocations: 11.88 kB / 0.489 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1419, allocations: 0 / 0.489 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.1442, allocations: 2.524 MB / 0.4914 GB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.937e-05/0.1443, allocations: 112.9 kB / 0.4915 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.644e-05/0.1444, allocations: 8 kB / 0.4915 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003121/0.1447, allocations: 8 kB / 0.4916 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.33e-05/0.1448, allocations: 23.91 kB / 0.4916 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.1448, allocations: 12 kB / 0.4916 GB, free: 11.15 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001468/0.1449, allocations: 189.9 kB / 0.4918 GB, free: 10.96 MB / 394.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1449, allocations: 0 / 0.4918 GB, free: 10.96 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007666/0.1457, allocations: 139.8 kB / 0.4919 GB, free: 10.83 MB / 394.7 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.0001095/0.1458, allocations: 107.1 kB / 0.492 GB, free: 10.71 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004739/0.1463, allocations: 289.8 kB / 0.4923 GB, free: 10.43 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.1463, allocations: 4 kB / 0.4923 GB, free: 10.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000144/0.1465, allocations: 88.64 kB / 0.4924 GB, free: 10.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009218/0.1474, allocations: 68.77 kB / 0.4924 GB, free: 10.28 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002332/0.1497, allocations: 1.882 MB / 0.4943 GB, free: 8.328 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.1501, allocations: 0.8038 MB / 0.4951 GB, free: 7.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001768/0.1503, allocations: 51.25 kB / 0.4951 GB, free: 7.453 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.342e-05/0.1504, allocations: 27.44 kB / 0.4951 GB, free: 7.426 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1504, allocations: 0 / 0.4951 GB, free: 7.426 MB / 394.7 MB Notification: Performance of Templates: time 0.005863/0.1562, allocations: 3.112 MB / 0.4982 GB, free: 4.328 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches