Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 102.7 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 242.2 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2148/0.2148, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 59.89 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.122, allocations: 60.83 MB / 469.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.00261/0.1246, allocations: 1.648 MB / 470.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000241/0.1249, allocations: 99.62 kB / 471 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.464e-05/0.1249, allocations: 0 / 471 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.049e-05/0.125, allocations: 15.86 kB / 471 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001121/0.1251, allocations: 47.62 kB / 471.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000113/0.1253, allocations: 23.97 kB / 471.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001243/0.1254, allocations: 123.4 kB / 471.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.1255, allocations: 40.98 kB / 471.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.944e-05/0.1256, allocations: 43.84 kB / 471.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.52e-05/0.1257, allocations: 47.78 kB / 471.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.265e-05/0.1257, allocations: 8 kB / 471.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.43e-05/0.1257, allocations: 12 kB / 471.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.58e-05/0.1258, allocations: 23.92 kB / 471.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.776e-05/0.1258, allocations: 59.72 kB / 471.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001397/0.126, allocations: 119.8 kB / 471.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.126, allocations: 3.984 kB / 471.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.126, allocations: 0 / 471.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.126, allocations: 0 / 471.6 MB, free: 12.05 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.0004361/0.1264, allocations: 419.3 kB / 472 MB, free: 11.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.1265, allocations: 8.031 kB / 472 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.821e-05/0.1265, allocations: 12.75 kB / 472 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001705/0.1267, allocations: 196.2 kB / 472.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.1267, allocations: 8.594 kB / 472.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.399e-05/0.1268, allocations: 20.28 kB / 472.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001958/0.127, allocations: 123.4 kB / 472.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.127, allocations: 8.188 kB / 472.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.127, allocations: 7.938 kB / 472.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.127, allocations: 4 kB / 472.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.784e-05/0.1271, allocations: 59.89 kB / 472.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006441/0.1278, allocations: 0.5372 MB / 472.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001284/0.1279, allocations: 89.16 kB / 473 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.478e-05/0.1279, allocations: 21.72 kB / 473 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.091e-05/0.128, allocations: 11.94 kB / 473.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.856e-05/0.128, allocations: 34.56 kB / 473.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.128, allocations: 0 / 473.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.00053/0.1285, allocations: 301.4 kB / 473.4 MB, free: 9.969 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.1286, allocations: 81.11 kB / 473.5 MB, free: 9.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.78e-05/0.1287, allocations: 121.8 kB / 473.6 MB, free: 9.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.1287, allocations: 33.69 kB / 473.6 MB, free: 9.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.807e-05/0.1288, allocations: 123.6 kB / 473.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.408e-05/0.1288, allocations: 31.55 kB / 473.8 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.648e-05/0.1288, allocations: 25.72 kB / 473.8 MB, free: 9.516 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.129, allocations: 326.8 kB / 474.1 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.525e-05/0.129, allocations: 20 kB / 474.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.683e-05/0.1291, allocations: 95.38 kB / 474.2 MB, free: 9.047 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001158/0.1292, allocations: 124.7 kB / 474.3 MB, free: 8.895 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1292, allocations: 0 / 474.3 MB, free: 8.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000301/0.1295, allocations: 175.1 kB / 474.5 MB, free: 8.711 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.1295, allocations: 4 kB / 474.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.1296, allocations: 7.984 kB / 474.5 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001563/0.1297, allocations: 41.58 kB / 474.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.46e-05/0.1298, allocations: 19.98 kB / 474.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001813/0.1316, allocations: 2.742 MB / 477.3 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.876e-05/0.1317, allocations: 15.84 kB / 477.3 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.1317, allocations: 8 kB / 477.4 MB, free: 5.59 MB / 350.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 9.691e-05/0.1318, allocations: 125.8 kB / 477.5 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.337e-05/0.1319, allocations: 7.906 kB / 477.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.979e-05/0.1319, allocations: 15.84 kB / 477.5 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1319, allocations: 4.062 kB / 477.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.1319, allocations: 96 / 477.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.1319, allocations: 7.984 kB / 477.5 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002314/0.1322, allocations: 201.6 kB / 477.7 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1322, allocations: 0 / 477.7 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.858e-05/0.1323, allocations: 12 kB / 477.7 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.75e-05/0.1324, allocations: 33.7 kB / 477.8 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.1324, allocations: 7.922 kB / 477.8 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002164/0.1345, allocations: 2.734 MB / 480.5 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1346, allocations: 0 / 480.5 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002923/0.1349, allocations: 308.3 kB / 480.8 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.596e-05/0.1349, allocations: 81.11 kB / 480.9 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.1349, allocations: 0 / 480.9 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.45e-05/0.135, allocations: 4.062 kB / 480.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.569e-05/0.1351, allocations: 12.12 kB / 480.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.1351, allocations: 4 kB / 480.9 MB, free: 1.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.592e-05/0.1351, allocations: 91.27 kB / 481 MB, free: 1.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.275e-06/0.1352, allocations: 0 / 481 MB, free: 1.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003684/0.1355, allocations: 43.78 kB / 481 MB, free: 1.527 MB / 350.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.0001288/0.1357, allocations: 107.2 kB / 481.1 MB, free: 1.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004691/0.1361, allocations: 305.5 kB / 481.4 MB, free: 1.086 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1362, allocations: 3.938 kB / 481.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002446/0.1364, allocations: 261.7 kB / 481.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005357/0.137, allocations: 27.27 kB / 481.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008206/0.1378, allocations: 476.8 kB / 482.2 MB, free: 288 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.1381, allocations: 0.7045 MB / 482.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.875e-05/0.1382, allocations: 12.88 kB / 482.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.375e-05/0.1382, allocations: 11.44 kB / 482.9 MB, free: 15.53 MB / 366.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1382, allocations: 0 / 482.9 MB, free: 15.53 MB / 366.1 MB Notification: Performance of Templates: time 0.004032/0.1423, allocations: 1.508 MB / 484.4 MB, free: 14.03 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches