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.001992/0.001992, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002771/0.002771, allocations: 216.5 kB / 23.75 MB, free: 4.668 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.572/1.572, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.2433/0.2433, allocations: 44.91 MB / 358.8 MB, free: 6.293 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.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",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.002291/0.002291, allocations: 67.91 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3472, allocations: 65.47 MB / 0.557 GB, free: 7.414 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.005267/0.3524, allocations: 2.873 MB / 0.5598 GB, free: 4.781 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001948/0.3544, allocations: 0.7907 MB / 0.5606 GB, free: 3.984 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003698/0.3548, allocations: 7.938 kB / 0.5606 GB, free: 3.977 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002853/0.355, allocations: 55.39 kB / 0.5607 GB, free: 3.922 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004605/0.3555, allocations: 130.9 kB / 0.5608 GB, free: 3.793 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005467/0.3561, allocations: 107.8 kB / 0.5609 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007946/0.3568, allocations: 441.9 kB / 0.5613 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002737/0.3571, allocations: 103.9 kB / 0.5614 GB, free: 3.145 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004116/0.3575, allocations: 183.4 kB / 0.5616 GB, free: 2.965 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002996/0.3578, allocations: 179.2 kB / 0.5618 GB, free: 2.789 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.632e-05/0.3579, allocations: 35.94 kB / 0.5618 GB, free: 2.754 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.358, allocations: 36 kB / 0.5618 GB, free: 2.719 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.395e-05/0.3581, allocations: 75.7 kB / 0.5619 GB, free: 2.645 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002043/0.3583, allocations: 207.1 kB / 0.5621 GB, free: 2.441 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005612/0.3588, allocations: 438.1 kB / 0.5625 GB, free: 2.012 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3588, allocations: 0 / 0.5625 GB, free: 2.012 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3588, allocations: 0 / 0.5625 GB, free: 2.012 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.3588, allocations: 0 / 0.5625 GB, free: 2.012 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.001033/0.3599, allocations: 0.591 MB / 0.5631 GB, free: 1.391 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.3599, allocations: 16.03 kB / 0.5631 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.873e-05/0.36, allocations: 74.72 kB / 0.5632 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002576/0.3603, allocations: 60.67 kB / 0.5632 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004417/0.3607, allocations: 217.9 kB / 0.5634 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.65e-05/0.3608, allocations: 25.38 kB / 0.5635 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.557e-05/0.3609, allocations: 48.31 kB / 0.5635 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007069/0.3616, allocations: 394.3 kB / 0.5639 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.261e-05/0.3616, allocations: 7.953 kB / 0.5639 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.655e-05/0.3616, allocations: 16 kB / 0.5639 GB, free: 492 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.3616, allocations: 8 kB / 0.5639 GB, free: 484 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004944/0.3621, allocations: 226 kB / 0.5641 GB, free: 260 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002585/0.3647, allocations: 1.668 MB / 0.5658 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004715/0.3652, allocations: 262.3 kB / 0.566 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001616/0.3654, allocations: 86.08 kB / 0.5661 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.3654, allocations: 4 kB / 0.5661 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/0.3654, allocations: 46.5 kB / 0.5661 GB, free: 14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.114e-06/0.3654, allocations: 0 / 0.5661 GB, free: 14 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007378/0.3662, allocations: 265.1 kB / 0.5664 GB, free: 13.73 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000159/0.3663, allocations: 217.9 kB / 0.5666 GB, free: 13.47 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000335/0.3667, allocations: 280.5 kB / 0.5669 GB, free: 13.2 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.3667, allocations: 29.7 kB / 0.5669 GB, free: 13.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000208/0.3669, allocations: 248.2 kB / 0.5671 GB, free: 12.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/0.367, allocations: 130.9 kB / 0.5673 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.3672, allocations: 94.31 kB / 0.5673 GB, free: 12.69 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002047/0.3674, allocations: 346.7 kB / 0.5677 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002148/0.3676, allocations: 101.2 kB / 0.5678 GB, free: 12.24 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005916/0.3682, allocations: 432.8 kB / 0.5682 GB, free: 11.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008837/0.3691, allocations: 0.5628 MB / 0.5687 GB, free: 10.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/0.3691, allocations: 8 kB / 0.5687 GB, free: 10.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009942/0.3701, allocations: 0.5288 MB / 0.5693 GB, free: 10.39 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.841e-05/0.3701, allocations: 12 kB / 0.5693 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.857e-05/0.3701, allocations: 8.5 kB / 0.5693 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.659e-05/0.3702, allocations: 19.94 kB / 0.5693 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004966/0.3707, allocations: 151.7 kB / 0.5694 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.133e-05/0.3707, allocations: 19.94 kB / 0.5695 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003205/0.371, allocations: 63.61 kB / 0.5695 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.735e-05/0.3711, allocations: 36 kB / 0.5696 GB, free: 10.09 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.0002429/0.3713, allocations: 189.6 kB / 0.5697 GB, free: 9.891 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.3715, allocations: 31.81 kB / 0.5698 GB, free: 9.859 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.569e-05/0.3716, allocations: 37.81 kB / 0.5698 GB, free: 9.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.3716, allocations: 7.938 kB / 0.5698 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.868e-06/0.3716, allocations: 4 kB / 0.5698 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.3716, allocations: 0 / 0.5698 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001414/0.373, allocations: 0.627 MB / 0.5704 GB, free: 9.125 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.373, allocations: 0 / 0.5704 GB, free: 9.125 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004952/0.3735, allocations: 91.88 kB / 0.5705 GB, free: 9.035 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/0.3735, allocations: 4 kB / 0.5705 GB, free: 9.031 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.928e-05/0.3735, allocations: 12 kB / 0.5705 GB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.726e-06/0.3735, allocations: 3.938 kB / 0.5705 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.3735, allocations: 4 kB / 0.5705 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008301/0.3744, allocations: 0.834 MB / 0.5714 GB, free: 8.145 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.728e-05/0.3744, allocations: 31.75 kB / 0.5714 GB, free: 8.113 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.503e-05/0.3745, allocations: 23.91 kB / 0.5714 GB, free: 8.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000329/0.3748, allocations: 4 kB / 0.5714 GB, free: 8.086 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.959e-05/0.3749, allocations: 27.91 kB / 0.5714 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-05/0.3749, allocations: 11.98 kB / 0.5714 GB, free: 8.047 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002023/0.3751, allocations: 191.1 kB / 0.5716 GB, free: 7.859 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3751, allocations: 0 / 0.5716 GB, free: 7.859 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007856/0.3759, allocations: 99.89 kB / 0.5717 GB, free: 7.762 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.001338/0.3772, allocations: 1.383 MB / 0.5731 GB, free: 6.344 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005895/0.3778, allocations: 290.5 kB / 0.5734 GB, free: 6.062 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3778, allocations: 4.062 kB / 0.5734 GB, free: 6.059 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000163/0.378, allocations: 84.03 kB / 0.5734 GB, free: 5.977 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009655/0.379, allocations: 68.39 kB / 0.5735 GB, free: 5.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006464/0.3854, allocations: 4.953 MB / 0.5783 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005053/0.3859, allocations: 0.8028 MB / 0.5791 GB, free: 15.69 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000179/0.3861, allocations: 43.27 kB / 0.5792 GB, free: 15.64 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001783/0.3863, allocations: 119.4 kB / 0.5793 GB, free: 15.53 MB / 430.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3863, allocations: 0 / 0.5793 GB, free: 15.53 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03803/0.4243, allocations: 7.128 MB / 0.5862 GB, free: 8.562 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.45, allocations: 2.812 kB / 0.5862 GB, free: 8.562 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.785061676055193]