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.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.001474/0.001474, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001862/0.001862, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.499/1.499, allocations: 230.6 MB / 258.3 MB, free: 8.039 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.2512/0.2512, allocations: 44.92 MB / 359.6 MB, free: 6.316 MB / 286.1 MB " [Timeout remaining time 179] 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.Directions3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions3",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.00228/0.00228, allocations: 63.91 kB / 0.4938 GB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.351/0.3533, allocations: 65.48 MB / 0.5578 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.003715/0.357, allocations: 1.669 MB / 0.5594 GB, free: 6.109 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004047/0.3574, allocations: 115.5 kB / 0.5595 GB, free: 5.996 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.3575, allocations: 0 / 0.5595 GB, free: 5.996 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.132e-05/0.3576, allocations: 19.73 kB / 0.5595 GB, free: 5.977 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001612/0.3578, allocations: 43.69 kB / 0.5596 GB, free: 5.934 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001687/0.3579, allocations: 19.98 kB / 0.5596 GB, free: 5.914 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002684/0.3582, allocations: 135.4 kB / 0.5597 GB, free: 5.781 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001864/0.3584, allocations: 29.28 kB / 0.5598 GB, free: 5.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.3585, allocations: 43.86 kB / 0.5598 GB, free: 5.707 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.3587, allocations: 51.77 kB / 0.5598 GB, free: 5.656 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.267e-05/0.3587, allocations: 12 kB / 0.5599 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.584e-05/0.3587, allocations: 8 kB / 0.5599 GB, free: 5.637 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.535e-05/0.3588, allocations: 23.92 kB / 0.5599 GB, free: 5.613 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.317e-05/0.3588, allocations: 55.73 kB / 0.5599 GB, free: 5.559 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002189/0.3591, allocations: 125.3 kB / 0.5601 GB, free: 5.438 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3591, allocations: 4 kB / 0.5601 GB, free: 5.434 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3591, allocations: 0 / 0.5601 GB, free: 5.434 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.3591, allocations: 0 / 0.5601 GB, free: 5.434 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.0005877/0.3597, allocations: 338.1 kB / 0.5604 GB, free: 5.066 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.3597, allocations: 8.031 kB / 0.5604 GB, free: 5.059 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.443e-05/0.3597, allocations: 8.422 kB / 0.5604 GB, free: 5.051 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.911e-05/0.3598, allocations: 38.75 kB / 0.5604 GB, free: 5.004 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.044e-05/0.3598, allocations: 12.88 kB / 0.5605 GB, free: 4.992 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001981/0.36, allocations: 138.3 kB / 0.5606 GB, free: 4.832 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.3601, allocations: 16.61 kB / 0.5606 GB, free: 4.816 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.463e-05/0.3601, allocations: 12.38 kB / 0.5606 GB, free: 4.805 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002655/0.3604, allocations: 129.3 kB / 0.5607 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.3604, allocations: 3.953 kB / 0.5607 GB, free: 4.664 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/0.3604, allocations: 11.94 kB / 0.5608 GB, free: 4.652 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.3604, allocations: 3.984 kB / 0.5608 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001312/0.3605, allocations: 55.97 kB / 0.5608 GB, free: 4.594 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008219/0.3614, allocations: 487.6 kB / 0.5613 GB, free: 4.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.3615, allocations: 93.08 kB / 0.5614 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.63e-05/0.3616, allocations: 25.72 kB / 0.5614 GB, free: 3.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.262e-05/0.3616, allocations: 0 / 0.5614 GB, free: 3.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.774e-05/0.3616, allocations: 46.58 kB / 0.5614 GB, free: 3.875 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.3616, allocations: 0 / 0.5614 GB, free: 3.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005575/0.3622, allocations: 139.2 kB / 0.5616 GB, free: 3.727 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.893e-05/0.3622, allocations: 85.11 kB / 0.5616 GB, free: 3.625 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.3623, allocations: 121.7 kB / 0.5618 GB, free: 3.496 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.3624, allocations: 29.7 kB / 0.5618 GB, free: 3.461 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.263e-05/0.3625, allocations: 123.8 kB / 0.5619 GB, free: 3.336 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.063e-05/0.3625, allocations: 27.75 kB / 0.5619 GB, free: 3.309 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.402e-05/0.3625, allocations: 33.7 kB / 0.562 GB, free: 3.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.3627, allocations: 326.8 kB / 0.5623 GB, free: 2.941 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.423e-05/0.3627, allocations: 19.94 kB / 0.5623 GB, free: 2.922 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/0.3628, allocations: 91.19 kB / 0.5624 GB, free: 2.805 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001775/0.363, allocations: 124.5 kB / 0.5625 GB, free: 2.652 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.363, allocations: 0 / 0.5625 GB, free: 2.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002983/0.3633, allocations: 171.1 kB / 0.5627 GB, free: 2.473 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.514e-05/0.3634, allocations: 11.94 kB / 0.5627 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.3634, allocations: 0 / 0.5627 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002341/0.3636, allocations: 37.7 kB / 0.5627 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.771e-05/0.3637, allocations: 23.92 kB / 0.5627 GB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002267/0.366, allocations: 2.536 MB / 0.5652 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.359e-05/0.366, allocations: 15.98 kB / 0.5652 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.3661, allocations: 11.94 kB / 0.5652 GB, free: 15.61 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.0001503/0.3662, allocations: 117.8 kB / 0.5654 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.385e-05/0.3663, allocations: 7.938 kB / 0.5654 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.756e-05/0.3663, allocations: 19.98 kB / 0.5654 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.3663, allocations: 0 / 0.5654 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.3663, allocations: 4 kB / 0.5654 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.3663, allocations: 4 kB / 0.5654 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003325/0.3667, allocations: 176.6 kB / 0.5656 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.3667, allocations: 7.938 kB / 0.5656 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.802e-05/0.3668, allocations: 8 kB / 0.5656 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001406/0.3669, allocations: 41.58 kB / 0.5656 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.694e-05/0.3669, allocations: 4 kB / 0.5656 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002297/0.3692, allocations: 2.519 MB / 0.5681 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.3692, allocations: 3.984 kB / 0.5681 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004101/0.3696, allocations: 312.5 kB / 0.5684 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.358e-05/0.3696, allocations: 4.203 kB / 0.5684 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.3697, allocations: 4 kB / 0.5684 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.3698, allocations: 4 kB / 0.5684 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.452e-05/0.3698, allocations: 11.97 kB / 0.5684 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-06/0.3698, allocations: 4 kB / 0.5684 GB, free: 12.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.666e-05/0.3699, allocations: 95.27 kB / 0.5685 GB, free: 11.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3699, allocations: 0 / 0.5685 GB, free: 11.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004159/0.3703, allocations: 43.83 kB / 0.5685 GB, free: 11.91 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.000733/0.371, allocations: 0.8266 MB / 0.5693 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005411/0.3716, allocations: 305.2 kB / 0.5696 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.3716, allocations: 0 / 0.5696 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002933/0.3719, allocations: 261.8 kB / 0.5699 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005088/0.3724, allocations: 26.33 kB / 0.5699 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002609/0.375, allocations: 1.987 MB / 0.5718 GB, free: 8.293 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/0.3754, allocations: 0.7084 MB / 0.5725 GB, free: 7.559 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.983e-05/0.3755, allocations: 4.984 kB / 0.5725 GB, free: 7.547 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.057e-05/0.3755, allocations: 31.42 kB / 0.5726 GB, free: 7.516 MB / 414.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3755, allocations: 4 kB / 0.5726 GB, free: 7.512 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03046/0.406, allocations: 3.168 MB / 0.5757 GB, free: 4.488 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.06, allocations: 4.062 kB / 0.5757 GB, free: 4.484 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions3_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.298085548973177]