Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0018/0.0018, allocations: 208.2 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.548/1.548, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.3036/0.3036, allocations: 46.95 MB / 360.9 MB, free: 4.039 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002106/0.002106, allocations: 59.91 kB / 0.4966 GB, free: 7.246 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3367/0.3388, allocations: 66.04 MB / 0.5611 GB, free: 4.199 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.002966/0.3418, allocations: 1.626 MB / 0.5626 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002926/0.3421, allocations: 103.6 kB / 0.5627 GB, free: 2.461 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.611e-05/0.3422, allocations: 4 kB / 0.5627 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.51e-05/0.3422, allocations: 15.8 kB / 0.5628 GB, free: 2.441 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001131/0.3423, allocations: 35.7 kB / 0.5628 GB, free: 2.406 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001249/0.3424, allocations: 27.95 kB / 0.5628 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001742/0.3426, allocations: 135.4 kB / 0.563 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001509/0.3428, allocations: 17.31 kB / 0.563 GB, free: 2.227 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.64e-05/0.3429, allocations: 59.83 kB / 0.563 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.922e-05/0.343, allocations: 43.8 kB / 0.5631 GB, free: 2.125 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.36e-05/0.343, allocations: 11.94 kB / 0.5631 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.587e-05/0.343, allocations: 12 kB / 0.5631 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.334e-05/0.343, allocations: 23.92 kB / 0.5631 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.719e-05/0.3431, allocations: 47.78 kB / 0.5632 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000208/0.3433, allocations: 129.8 kB / 0.5633 GB, free: 1.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3433, allocations: 0 / 0.5633 GB, free: 1.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3433, allocations: 0 / 0.5633 GB, free: 1.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.3433, allocations: 0 / 0.5633 GB, free: 1.91 MB / 398.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.0005908/0.3439, allocations: 334.2 kB / 0.5636 GB, free: 1.547 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.344, allocations: 12.03 kB / 0.5636 GB, free: 1.535 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.258e-05/0.344, allocations: 8.891 kB / 0.5636 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002301/0.3443, allocations: 146.3 kB / 0.5638 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.3443, allocations: 8.609 kB / 0.5638 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.015e-05/0.3443, allocations: 12.38 kB / 0.5638 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002397/0.3445, allocations: 121.6 kB / 0.5639 GB, free: 1.211 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.3446, allocations: 8.141 kB / 0.5639 GB, free: 1.203 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.3446, allocations: 7.938 kB / 0.5639 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.3446, allocations: 4 kB / 0.5639 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001283/0.3447, allocations: 59.89 kB / 0.564 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007489/0.3455, allocations: 444.3 kB / 0.5644 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001406/0.3456, allocations: 81.16 kB / 0.5645 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.607e-05/0.3457, allocations: 25.72 kB / 0.5645 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.283e-05/0.3457, allocations: 7.938 kB / 0.5645 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/0.3457, allocations: 42.52 kB / 0.5645 GB, free: 488 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.3457, allocations: 0 / 0.5645 GB, free: 488 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005517/0.3463, allocations: 151.2 kB / 0.5647 GB, free: 324 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.745e-05/0.3463, allocations: 77.11 kB / 0.5648 GB, free: 228 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.3464, allocations: 125.7 kB / 0.5649 GB, free: 92 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.155e-05/0.3465, allocations: 25.7 kB / 0.5649 GB, free: 60 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.3466, allocations: 127.8 kB / 0.565 GB, free: 15.93 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.061e-05/0.3466, allocations: 27.75 kB / 0.5651 GB, free: 15.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.552e-05/0.3467, allocations: 29.7 kB / 0.5651 GB, free: 15.87 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.3468, allocations: 322.8 kB / 0.5654 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.625e-05/0.3469, allocations: 24 kB / 0.5654 GB, free: 15.52 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.347, allocations: 88.52 kB / 0.5655 GB, free: 15.4 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001724/0.3472, allocations: 124.8 kB / 0.5656 GB, free: 15.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.3472, allocations: 4 kB / 0.5656 GB, free: 15.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002923/0.3475, allocations: 167.1 kB / 0.5658 GB, free: 15.07 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.3475, allocations: 8 kB / 0.5658 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.3475, allocations: 0 / 0.5658 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001919/0.3477, allocations: 41.7 kB / 0.5658 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.3478, allocations: 31.86 kB / 0.5659 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002159/0.35, allocations: 2.47 MB / 0.5683 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.832e-05/0.35, allocations: 19.86 kB / 0.5683 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.305e-05/0.35, allocations: 11.98 kB / 0.5683 GB, free: 12.28 MB / 414.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.0001166/0.3502, allocations: 122 kB / 0.5684 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.505e-05/0.3502, allocations: 11.95 kB / 0.5684 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.474e-05/0.3502, allocations: 15.98 kB / 0.5684 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.3502, allocations: 0 / 0.5684 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.3502, allocations: 4 kB / 0.5684 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-06/0.3502, allocations: 3.938 kB / 0.5685 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002248/0.3505, allocations: 133.2 kB / 0.5686 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3505, allocations: 0 / 0.5686 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.023e-05/0.3506, allocations: 16 kB / 0.5686 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.859e-05/0.3507, allocations: 37.64 kB / 0.5686 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.3507, allocations: 0 / 0.5686 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00192/0.3526, allocations: 2.481 MB / 0.5711 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.3526, allocations: 0 / 0.5711 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003285/0.3529, allocations: 312.6 kB / 0.5714 GB, free: 8.879 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.138e-05/0.3529, allocations: 8 kB / 0.5714 GB, free: 8.871 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.148e-05/0.3529, allocations: 0 / 0.5714 GB, free: 8.871 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.297e-05/0.353, allocations: 7.875 kB / 0.5714 GB, free: 8.863 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.179e-05/0.3531, allocations: 15.97 kB / 0.5714 GB, free: 8.848 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.3531, allocations: 7.938 kB / 0.5714 GB, free: 8.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.833e-05/0.3531, allocations: 95.64 kB / 0.5715 GB, free: 8.746 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3531, allocations: 0 / 0.5715 GB, free: 8.746 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000356/0.3535, allocations: 39.89 kB / 0.5715 GB, free: 8.707 MB / 414.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.0001282/0.3536, allocations: 103.2 kB / 0.5716 GB, free: 8.598 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005204/0.3541, allocations: 297.5 kB / 0.5719 GB, free: 8.281 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.3541, allocations: 4 kB / 0.5719 GB, free: 8.277 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002775/0.3544, allocations: 253.3 kB / 0.5721 GB, free: 8.004 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004824/0.3549, allocations: 28.36 kB / 0.5722 GB, free: 7.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000829/0.3557, allocations: 484.3 kB / 0.5726 GB, free: 7.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001176/0.3559, allocations: 89.62 kB / 0.5727 GB, free: 7.375 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.756e-05/0.3559, allocations: 12.97 kB / 0.5727 GB, free: 7.355 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.587e-05/0.3559, allocations: 11.44 kB / 0.5727 GB, free: 7.344 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3559, allocations: 0 / 0.5727 GB, free: 7.344 MB / 414.1 MB Notification: Performance of Templates: time 0.005236/0.3612, allocations: 1.787 MB / 0.5745 GB, free: 5.586 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.274238157086074]