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.00162/0.00162, allocations: 107.1 kB / 20.44 MB, free: 1.195 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.001824/0.001824, allocations: 205.9 kB / 23.72 MB, free: 4.414 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.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.282/0.282, allocations: 44.94 MB / 358.8 MB, free: 6.066 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.002104/0.002104, allocations: 63.91 kB / 0.493 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3502/0.3523, allocations: 65.48 MB / 0.557 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.005743/0.358, allocations: 2.648 MB / 0.5595 GB, free: 4.863 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002002/0.36, allocations: 0.744 MB / 0.5603 GB, free: 4.113 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002031/0.3602, allocations: 11.94 kB / 0.5603 GB, free: 4.102 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002415/0.3605, allocations: 59.38 kB / 0.5603 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003531/0.3608, allocations: 126.9 kB / 0.5605 GB, free: 3.918 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004319/0.3613, allocations: 107.8 kB / 0.5606 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006716/0.3619, allocations: 437.9 kB / 0.561 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002804/0.3622, allocations: 99.88 kB / 0.5611 GB, free: 3.277 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004181/0.3626, allocations: 183.4 kB / 0.5613 GB, free: 3.098 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003256/0.363, allocations: 159.2 kB / 0.5614 GB, free: 2.941 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.308e-05/0.363, allocations: 32 kB / 0.5614 GB, free: 2.91 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.3632, allocations: 40 kB / 0.5615 GB, free: 2.871 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.3633, allocations: 79.69 kB / 0.5616 GB, free: 2.793 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000256/0.3635, allocations: 167.3 kB / 0.5617 GB, free: 2.629 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007456/0.3643, allocations: 442.1 kB / 0.5621 GB, free: 2.195 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3643, allocations: 0 / 0.5621 GB, free: 2.195 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3643, allocations: 0 / 0.5621 GB, free: 2.195 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.3643, allocations: 0 / 0.5621 GB, free: 2.195 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.001353/0.3656, allocations: 0.595 MB / 0.5627 GB, free: 1.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.3657, allocations: 8.031 kB / 0.5627 GB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001124/0.3658, allocations: 70.72 kB / 0.5628 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003595/0.3662, allocations: 60.67 kB / 0.5628 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005656/0.3667, allocations: 221.9 kB / 0.5631 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.791e-05/0.3668, allocations: 29.38 kB / 0.5631 GB, free: 1.156 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.7e-05/0.3669, allocations: 44.33 kB / 0.5631 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009308/0.3678, allocations: 402.2 kB / 0.5635 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.527e-05/0.3678, allocations: 7.953 kB / 0.5635 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.924e-05/0.3679, allocations: 16 kB / 0.5635 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.3679, allocations: 8 kB / 0.5635 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000637/0.3685, allocations: 217.8 kB / 0.5637 GB, free: 456 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003186/0.3717, allocations: 1.605 MB / 0.5653 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006409/0.3724, allocations: 258.3 kB / 0.5656 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002261/0.3726, allocations: 86.08 kB / 0.5656 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.473e-05/0.3726, allocations: 11.94 kB / 0.5657 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.642e-05/0.3727, allocations: 46.56 kB / 0.5657 GB, free: 14.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.926e-06/0.3727, allocations: 0 / 0.5657 GB, free: 14.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.001005/0.3737, allocations: 269.4 kB / 0.566 GB, free: 13.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001566/0.3738, allocations: 213.6 kB / 0.5662 GB, free: 13.72 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004078/0.3743, allocations: 288.4 kB / 0.5664 GB, free: 13.44 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.165e-05/0.3743, allocations: 29.7 kB / 0.5665 GB, free: 13.4 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000246/0.3745, allocations: 240.3 kB / 0.5667 GB, free: 13.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/0.3747, allocations: 135 kB / 0.5668 GB, free: 13.03 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001884/0.3749, allocations: 94.3 kB / 0.5669 GB, free: 12.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002108/0.3751, allocations: 350.7 kB / 0.5672 GB, free: 12.58 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002993/0.3754, allocations: 101.2 kB / 0.5673 GB, free: 12.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006664/0.376, allocations: 432.8 kB / 0.5678 GB, free: 11.9 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.3771, allocations: 0.5702 MB / 0.5683 GB, free: 11.17 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/0.3771, allocations: 4 kB / 0.5683 GB, free: 11.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001227/0.3783, allocations: 0.5204 MB / 0.5688 GB, free: 10.64 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.107e-05/0.3784, allocations: 12 kB / 0.5688 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.075e-05/0.3784, allocations: 12.88 kB / 0.5688 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.419e-05/0.3784, allocations: 16 kB / 0.5689 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005818/0.379, allocations: 151.7 kB / 0.569 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.877e-05/0.379, allocations: 19.94 kB / 0.569 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004152/0.3794, allocations: 63.61 kB / 0.5691 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.846e-05/0.3795, allocations: 32 kB / 0.5691 GB, free: 10.34 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.0002468/0.3797, allocations: 177.5 kB / 0.5693 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002031/0.3799, allocations: 35.77 kB / 0.5693 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.24e-05/0.38, allocations: 41.83 kB / 0.5694 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.38, allocations: 4 kB / 0.5694 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.38, allocations: 7.984 kB / 0.5694 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.3801, allocations: 4 kB / 0.5694 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001726/0.3818, allocations: 0.6043 MB / 0.57 GB, free: 9.398 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.246e-06/0.3818, allocations: 8 kB / 0.57 GB, free: 9.391 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005824/0.3824, allocations: 83.89 kB / 0.5701 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/0.3824, allocations: 4.188 kB / 0.5701 GB, free: 9.305 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.997e-05/0.3824, allocations: 8 kB / 0.5701 GB, free: 9.297 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.578e-06/0.3824, allocations: 15.86 kB / 0.5701 GB, free: 9.281 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.3824, allocations: 7.938 kB / 0.5701 GB, free: 9.273 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009954/0.3834, allocations: 0.8377 MB / 0.5709 GB, free: 8.402 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.234e-05/0.3835, allocations: 31.69 kB / 0.5709 GB, free: 8.371 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.173e-05/0.3835, allocations: 15.94 kB / 0.571 GB, free: 8.355 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004562/0.384, allocations: 11.94 kB / 0.571 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.862e-05/0.3841, allocations: 23.95 kB / 0.571 GB, free: 8.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.874e-05/0.3841, allocations: 8 kB / 0.571 GB, free: 8.312 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002222/0.3843, allocations: 187.1 kB / 0.5712 GB, free: 8.129 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3843, allocations: 0 / 0.5712 GB, free: 8.129 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001003/0.3853, allocations: 107.9 kB / 0.5713 GB, free: 8.023 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.001355/0.3867, allocations: 1.382 MB / 0.5726 GB, free: 6.609 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006943/0.3874, allocations: 290.2 kB / 0.5729 GB, free: 6.328 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3874, allocations: 0 / 0.5729 GB, free: 6.328 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002179/0.3876, allocations: 92.83 kB / 0.573 GB, free: 6.238 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00138/0.389, allocations: 71.58 kB / 0.5731 GB, free: 6.172 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009056/0.398, allocations: 4.941 MB / 0.5779 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.3984, allocations: 190.5 kB / 0.5781 GB, free: 0.582 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002584/0.3986, allocations: 47.25 kB / 0.5781 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002247/0.3988, allocations: 119.4 kB / 0.5782 GB, free: 428 kB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3988, allocations: 0 / 0.5782 GB, free: 428 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04602/0.4449, allocations: 7.349 MB / 0.5854 GB, free: 9.262 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.83, allocations: 4.062 kB / 0.5854 GB, free: 9.258 MB / 430.1 MB " [Timeout remaining time 648] (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: 14.992469592019916]