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.001519/0.001519, allocations: 100.2 kB / 18.4 MB, free: 4.676 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.001754/0.001754, allocations: 182.9 kB / 19.33 MB, free: 3.746 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.373/1.373, allocations: 222.9 MB / 243 MB, free: 15.07 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.2131/0.2131, allocations: 44.19 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 60.23 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1153, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.002715/0.118, allocations: 1.649 MB / 472.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002402/0.1183, allocations: 107.6 kB / 472.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.389e-05/0.1184, allocations: 4 kB / 472.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.649e-05/0.1184, allocations: 11.86 kB / 472.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.1185, allocations: 43.62 kB / 472.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000117/0.1187, allocations: 27.97 kB / 472.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001384/0.1188, allocations: 127.4 kB / 472.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.119, allocations: 36.97 kB / 472.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.179e-05/0.119, allocations: 47.84 kB / 472.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.623e-05/0.1191, allocations: 47.78 kB / 472.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.922e-05/0.1191, allocations: 8 kB / 472.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.905e-05/0.1192, allocations: 12 kB / 472.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.554e-05/0.1192, allocations: 23.92 kB / 472.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.633e-05/0.1192, allocations: 51.75 kB / 472.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001392/0.1194, allocations: 127.5 kB / 473 MB, free: 11.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1194, allocations: 0 / 473 MB, free: 11.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1194, allocations: 4 kB / 473 MB, free: 11.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.1194, allocations: 0 / 473 MB, free: 11.32 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.0004377/0.1199, allocations: 414.3 kB / 473.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.1199, allocations: 8.031 kB / 473.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.302e-05/0.1199, allocations: 20.73 kB / 473.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001527/0.1201, allocations: 184.2 kB / 473.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.1201, allocations: 12.59 kB / 473.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.371e-05/0.1202, allocations: 20.27 kB / 473.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001927/0.1204, allocations: 131.4 kB / 473.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.1204, allocations: 4.188 kB / 473.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.1204, allocations: 11.88 kB / 473.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.1204, allocations: 4 kB / 473.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001061/0.1205, allocations: 63.91 kB / 473.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006378/0.1212, allocations: 0.5333 MB / 474.4 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/0.1213, allocations: 85.08 kB / 474.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.857e-05/0.1214, allocations: 29.89 kB / 474.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.1214, allocations: 3.938 kB / 474.5 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/0.1214, allocations: 34.56 kB / 474.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.283e-06/0.1214, allocations: 4 kB / 474.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005303/0.1219, allocations: 305.3 kB / 474.9 MB, free: 9.234 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/0.122, allocations: 81.11 kB / 474.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.413e-05/0.1221, allocations: 113.8 kB / 475.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.1221, allocations: 25.7 kB / 475.1 MB, free: 8.984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.116e-05/0.1222, allocations: 123.6 kB / 475.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.41e-05/0.1222, allocations: 35.55 kB / 475.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.082e-05/0.1223, allocations: 29.7 kB / 475.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.1224, allocations: 322.8 kB / 475.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.11e-05/0.1224, allocations: 23.98 kB / 475.6 MB, free: 8.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.283e-05/0.1225, allocations: 88.52 kB / 475.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.1226, allocations: 128.8 kB / 475.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1226, allocations: 0 / 475.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002441/0.1229, allocations: 163.1 kB / 476 MB, free: 7.996 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.1229, allocations: 12.19 kB / 476 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.1229, allocations: 8 kB / 476 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001703/0.1231, allocations: 41.64 kB / 476 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.669e-05/0.1232, allocations: 16 kB / 476 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001681/0.1249, allocations: 2.738 MB / 478.8 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.731e-05/0.1249, allocations: 15.84 kB / 478.8 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.125, allocations: 4 kB / 478.8 MB, free: 4.879 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 8.485e-05/0.125, allocations: 129.9 kB / 478.9 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.492e-05/0.1251, allocations: 7.906 kB / 478.9 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.598e-05/0.1251, allocations: 19.83 kB / 479 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.1251, allocations: 0 / 479 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.1251, allocations: 0 / 479 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.1252, allocations: 4.078 kB / 479 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002383/0.1254, allocations: 201.6 kB / 479.2 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.1254, allocations: 3.984 kB / 479.2 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.368e-05/0.1255, allocations: 16 kB / 479.2 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.05e-05/0.1256, allocations: 37.7 kB / 479.2 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.1256, allocations: 3.938 kB / 479.2 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001561/0.1272, allocations: 2.73 MB / 482 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1272, allocations: 3.938 kB / 482 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/0.1275, allocations: 304.3 kB / 482.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.212e-05/0.1275, allocations: 81.2 kB / 482.3 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.1275, allocations: 8 kB / 482.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.026e-05/0.1276, allocations: 0 / 482.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.051e-05/0.1276, allocations: 8.031 kB / 482.3 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/0.1277, allocations: 4.094 kB / 482.4 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.287e-05/0.1277, allocations: 95.27 kB / 482.4 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.1277, allocations: 3.938 kB / 482.4 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003445/0.1281, allocations: 43.78 kB / 482.5 MB, free: 0.8047 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 8.831e-05/0.1282, allocations: 99.23 kB / 482.6 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003991/0.1286, allocations: 309.2 kB / 482.9 MB, free: 376 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1286, allocations: 0 / 482.9 MB, free: 376 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002205/0.1288, allocations: 261.8 kB / 483.1 MB, free: 88 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004413/0.1293, allocations: 23.98 kB / 483.2 MB, free: 64 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006918/0.13, allocations: 472.5 kB / 483.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.1302, allocations: 0.7084 MB / 484.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.082e-05/0.1303, allocations: 4.891 kB / 484.3 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.08e-05/0.1303, allocations: 11.44 kB / 484.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1303, allocations: 0 / 484.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of Templates: time 0.003862/0.1342, allocations: 1.529 MB / 485.9 MB, free: 13.3 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins1/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