Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.00138/0.00138, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001655/0.001655, allocations: 216.8 kB / 24.52 MB, free: 3.914 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.493/1.493, allocations: 230.6 MB / 258.3 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2322/0.2322, allocations: 44.94 MB / 359.6 MB, free: 6.066 MB / 286.1 MB " [Timeout remaining time 180] 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.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: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002086/0.002086, allocations: 71.88 kB / 0.4938 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3282, allocations: 65.47 MB / 0.5577 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004449/0.3327, allocations: 2.647 MB / 0.5603 GB, free: 4.891 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001501/0.3342, allocations: 0.74 MB / 0.561 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002214/0.3344, allocations: 7.938 kB / 0.561 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002159/0.3346, allocations: 59.38 kB / 0.5611 GB, free: 4.078 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002786/0.3349, allocations: 130.9 kB / 0.5612 GB, free: 3.949 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003443/0.3352, allocations: 107.8 kB / 0.5613 GB, free: 3.844 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005062/0.3357, allocations: 441.9 kB / 0.5617 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002307/0.336, allocations: 107.9 kB / 0.5618 GB, free: 3.297 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003196/0.3363, allocations: 179.4 kB / 0.562 GB, free: 3.121 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002789/0.3366, allocations: 187.1 kB / 0.5622 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.354e-05/0.3366, allocations: 32 kB / 0.5622 GB, free: 2.906 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.895e-05/0.3367, allocations: 36 kB / 0.5623 GB, free: 2.871 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.089e-05/0.3368, allocations: 71.77 kB / 0.5623 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001807/0.337, allocations: 171.2 kB / 0.5625 GB, free: 2.633 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005518/0.3375, allocations: 442.1 kB / 0.5629 GB, free: 2.199 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3375, allocations: 0 / 0.5629 GB, free: 2.199 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.3375, allocations: 0 / 0.5629 GB, free: 2.199 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.3375, allocations: 0 / 0.5629 GB, free: 2.199 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001014/0.3385, allocations: 0.5911 MB / 0.5635 GB, free: 1.578 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.3386, allocations: 8.031 kB / 0.5635 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.305e-05/0.3386, allocations: 13.19 kB / 0.5635 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.022e-05/0.3387, allocations: 82.64 kB / 0.5636 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002686/0.3389, allocations: 60.62 kB / 0.5636 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.3394, allocations: 221.9 kB / 0.5639 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.913e-05/0.3394, allocations: 33.36 kB / 0.5639 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.169e-05/0.3395, allocations: 44.33 kB / 0.5639 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007051/0.3402, allocations: 394.1 kB / 0.5643 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.213e-05/0.3402, allocations: 11.95 kB / 0.5643 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.379e-05/0.3402, allocations: 12 kB / 0.5643 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.3402, allocations: 8 kB / 0.5643 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004677/0.3407, allocations: 219.7 kB / 0.5646 GB, free: 436 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002458/0.3432, allocations: 1.605 MB / 0.5661 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004802/0.3437, allocations: 254.3 kB / 0.5664 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.3438, allocations: 90.08 kB / 0.5664 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.3439, allocations: 7.938 kB / 0.5665 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.3439, allocations: 46.55 kB / 0.5665 GB, free: 14.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.064e-06/0.3439, allocations: 0 / 0.5665 GB, free: 14.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007219/0.3446, allocations: 265.2 kB / 0.5668 GB, free: 13.97 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/0.3447, allocations: 217.6 kB / 0.567 GB, free: 13.71 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003289/0.3451, allocations: 276.5 kB / 0.5672 GB, free: 13.43 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.3451, allocations: 29.7 kB / 0.5673 GB, free: 13.4 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/0.3453, allocations: 252.5 kB / 0.5675 GB, free: 13.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.3454, allocations: 123 kB / 0.5676 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/0.3455, allocations: 102.3 kB / 0.5677 GB, free: 12.92 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.3457, allocations: 350.7 kB / 0.568 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002214/0.3459, allocations: 93.27 kB / 0.5681 GB, free: 12.47 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004975/0.3464, allocations: 428.8 kB / 0.5685 GB, free: 11.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007799/0.3472, allocations: 0.5702 MB / 0.5691 GB, free: 11.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.3472, allocations: 4 kB / 0.5691 GB, free: 11.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009477/0.3482, allocations: 0.5247 MB / 0.5696 GB, free: 10.63 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.3482, allocations: 11.72 kB / 0.5696 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/0.3482, allocations: 12 kB / 0.5696 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.012e-05/0.3482, allocations: 16 kB / 0.5696 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004764/0.3487, allocations: 156.2 kB / 0.5698 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.731e-05/0.3487, allocations: 23.92 kB / 0.5698 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003242/0.3491, allocations: 63.56 kB / 0.5699 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.561e-05/0.3491, allocations: 35.94 kB / 0.5699 GB, free: 10.32 MB / 414.1 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.0002109/0.3493, allocations: 185.5 kB / 0.5701 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001683/0.3495, allocations: 31.81 kB / 0.5701 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.38e-05/0.3496, allocations: 37.83 kB / 0.5702 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.3496, allocations: 4 kB / 0.5702 GB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/0.3496, allocations: 8 kB / 0.5702 GB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.3496, allocations: 0 / 0.5702 GB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001383/0.351, allocations: 0.6153 MB / 0.5708 GB, free: 9.375 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.351, allocations: 0 / 0.5708 GB, free: 9.375 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004933/0.3515, allocations: 87.89 kB / 0.5709 GB, free: 9.289 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-06/0.3515, allocations: 4 kB / 0.5709 GB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.057e-05/0.3515, allocations: 15.92 kB / 0.5709 GB, free: 9.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.3515, allocations: 4 kB / 0.5709 GB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/0.3515, allocations: 7.938 kB / 0.5709 GB, free: 9.258 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008593/0.3524, allocations: 0.8299 MB / 0.5717 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.623e-05/0.3524, allocations: 39.69 kB / 0.5717 GB, free: 8.355 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.661e-05/0.3525, allocations: 11.94 kB / 0.5717 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003892/0.3529, allocations: 11.98 kB / 0.5718 GB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.879e-05/0.353, allocations: 19.97 kB / 0.5718 GB, free: 8.312 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.353, allocations: 15.98 kB / 0.5718 GB, free: 8.297 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001947/0.3532, allocations: 179.1 kB / 0.572 GB, free: 8.121 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3532, allocations: 0 / 0.572 GB, free: 8.121 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007884/0.354, allocations: 107.9 kB / 0.5721 GB, free: 8.016 MB / 414.1 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.001184/0.3551, allocations: 1.383 MB / 0.5734 GB, free: 6.598 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006209/0.3558, allocations: 285.7 kB / 0.5737 GB, free: 6.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.3558, allocations: 0.8125 kB / 0.5737 GB, free: 6.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001843/0.3559, allocations: 88.08 kB / 0.5738 GB, free: 6.234 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.357, allocations: 80.67 kB / 0.5738 GB, free: 6.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006504/0.3635, allocations: 4.944 MB / 0.5787 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.3638, allocations: 194.4 kB / 0.5789 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001791/0.3639, allocations: 47.25 kB / 0.5789 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001748/0.3641, allocations: 123.3 kB / 0.579 GB, free: 412 kB / 414.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3641, allocations: 0 / 0.579 GB, free: 412 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03086/0.395, allocations: 7.128 MB / 0.586 GB, free: 9.488 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.53, allocations: 14.95 kB / 0.586 GB, free: 9.477 MB / 430.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.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: 15.834011433995329]