Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001768/0.001768, 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.002326/0.002326, allocations: 212.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.453/1.453, 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.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.2392/0.2392, allocations: 46.96 MB / 360.9 MB, free: 4.051 MB / 286.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 67.91 kB / 0.4961 GB, free: 7.742 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3415, allocations: 66.03 MB / 0.5606 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004091/0.3455, allocations: 2.653 MB / 0.5632 GB, free: 1.602 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.3469, allocations: 0.7401 MB / 0.5639 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001609/0.3471, allocations: 11.94 kB / 0.5639 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.3473, allocations: 55.38 kB / 0.564 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002492/0.3475, allocations: 126.9 kB / 0.5641 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003078/0.3478, allocations: 111.8 kB / 0.5642 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004702/0.3483, allocations: 441.9 kB / 0.5646 GB, free: 124 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.3485, allocations: 111.9 kB / 0.5647 GB, free: 4 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003108/0.3488, allocations: 183.3 kB / 0.5649 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002482/0.3491, allocations: 175.2 kB / 0.5651 GB, free: 15.65 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.02e-05/0.3491, allocations: 32 kB / 0.5651 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.51e-05/0.3492, allocations: 36 kB / 0.5651 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.737e-05/0.3493, allocations: 79.7 kB / 0.5652 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001752/0.3494, allocations: 171.2 kB / 0.5654 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005007/0.3499, allocations: 438.2 kB / 0.5658 GB, free: 14.91 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3499, allocations: 0 / 0.5658 GB, free: 14.91 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.3499, allocations: 4 kB / 0.5658 GB, free: 14.91 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.35, allocations: 0 / 0.5658 GB, free: 14.91 MB / 414.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.001024/0.351, allocations: 0.5872 MB / 0.5664 GB, free: 14.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.351, allocations: 8.031 kB / 0.5664 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.545e-05/0.3511, allocations: 78.7 kB / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002715/0.3514, allocations: 60.69 kB / 0.5665 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/0.3518, allocations: 221.9 kB / 0.5667 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.305e-05/0.3518, allocations: 33.31 kB / 0.5667 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.909e-05/0.3519, allocations: 40.33 kB / 0.5668 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006615/0.3525, allocations: 394.3 kB / 0.5672 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.772e-05/0.3526, allocations: 11.95 kB / 0.5672 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.077e-05/0.3526, allocations: 12 kB / 0.5672 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.3526, allocations: 8 kB / 0.5672 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004345/0.353, allocations: 223.7 kB / 0.5674 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002302/0.3553, allocations: 1.601 MB / 0.569 GB, free: 11.45 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004596/0.3558, allocations: 258.3 kB / 0.5692 GB, free: 11.13 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.356, allocations: 86.08 kB / 0.5693 GB, free: 11.03 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.356, allocations: 11.94 kB / 0.5693 GB, free: 11.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.356, allocations: 42.55 kB / 0.5693 GB, free: 10.96 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.813e-06/0.356, allocations: 0 / 0.5693 GB, free: 10.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006942/0.3567, allocations: 266 kB / 0.5696 GB, free: 10.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/0.3569, allocations: 213.9 kB / 0.5698 GB, free: 10.44 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003013/0.3572, allocations: 296.3 kB / 0.5701 GB, free: 10.15 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.3572, allocations: 29.7 kB / 0.5701 GB, free: 10.11 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/0.3574, allocations: 248.1 kB / 0.5704 GB, free: 9.867 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.3575, allocations: 123 kB / 0.5705 GB, free: 9.746 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/0.3576, allocations: 102.3 kB / 0.5706 GB, free: 9.641 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.3578, allocations: 350.7 kB / 0.5709 GB, free: 9.289 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002109/0.358, allocations: 93.27 kB / 0.571 GB, free: 9.195 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004605/0.3584, allocations: 428.8 kB / 0.5714 GB, free: 8.621 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007782/0.3592, allocations: 0.578 MB / 0.572 GB, free: 7.883 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.3592, allocations: 4 kB / 0.572 GB, free: 7.879 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008721/0.3601, allocations: 0.5211 MB / 0.5725 GB, free: 7.352 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.3601, allocations: 12 kB / 0.5725 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.3601, allocations: 12 kB / 0.5725 GB, free: 7.328 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.612e-05/0.3602, allocations: 16 kB / 0.5725 GB, free: 7.312 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004658/0.3606, allocations: 151.7 kB / 0.5727 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.307e-05/0.3607, allocations: 23.92 kB / 0.5727 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003046/0.361, allocations: 59.62 kB / 0.5727 GB, free: 7.082 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.037e-05/0.361, allocations: 32 kB / 0.5728 GB, free: 7.051 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.000185/0.3612, allocations: 185.5 kB / 0.5729 GB, free: 6.859 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.3613, allocations: 39.77 kB / 0.573 GB, free: 6.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.19e-05/0.3614, allocations: 33.83 kB / 0.573 GB, free: 6.785 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.3614, allocations: 4 kB / 0.573 GB, free: 6.781 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.3614, allocations: 0 / 0.573 GB, free: 6.781 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3614, allocations: 4 kB / 0.573 GB, free: 6.777 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00126/0.3627, allocations: 0.6078 MB / 0.5736 GB, free: 6.113 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3627, allocations: 0 / 0.5736 GB, free: 6.113 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004695/0.3632, allocations: 91.83 kB / 0.5737 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.774e-06/0.3632, allocations: 7.984 kB / 0.5737 GB, free: 6.016 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/0.3632, allocations: 16.05 kB / 0.5737 GB, free: 6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.804e-06/0.3632, allocations: 7.938 kB / 0.5737 GB, free: 5.992 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.3632, allocations: 7.938 kB / 0.5737 GB, free: 5.984 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007826/0.364, allocations: 0.8221 MB / 0.5745 GB, free: 5.129 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.196e-05/0.364, allocations: 39.69 kB / 0.5746 GB, free: 5.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.769e-05/0.3641, allocations: 11.94 kB / 0.5746 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003555/0.3644, allocations: 12.11 kB / 0.5746 GB, free: 5.066 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.809e-05/0.3645, allocations: 27.97 kB / 0.5746 GB, free: 5.039 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.189e-05/0.3645, allocations: 19.92 kB / 0.5747 GB, free: 5.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001759/0.3647, allocations: 179.1 kB / 0.5748 GB, free: 4.844 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3647, allocations: 0 / 0.5748 GB, free: 4.844 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007169/0.3654, allocations: 99.89 kB / 0.5749 GB, free: 4.746 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.001102/0.3665, allocations: 1.392 MB / 0.5763 GB, free: 3.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005111/0.367, allocations: 286.6 kB / 0.5766 GB, free: 3.043 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.367, allocations: 0 / 0.5766 GB, free: 3.043 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001745/0.3672, allocations: 83.83 kB / 0.5766 GB, free: 2.961 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009602/0.3682, allocations: 77.39 kB / 0.5767 GB, free: 2.895 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006107/0.3743, allocations: 4.945 MB / 0.5815 GB, free: 13.51 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002261/0.3745, allocations: 190.5 kB / 0.5817 GB, free: 13.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001587/0.3747, allocations: 47.25 kB / 0.5818 GB, free: 13.26 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001608/0.3748, allocations: 119.4 kB / 0.5819 GB, free: 13.14 MB / 430.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3748, allocations: 0 / 0.5819 GB, free: 13.14 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03765/0.4125, allocations: 7.489 MB / 0.5892 GB, free: 5.84 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.53, allocations: 3.938 kB / 0.5892 GB, free: 5.836 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.737871730001643]