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.001463/0.001463, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001427/0.001427, allocations: 215.9 kB / 23.73 MB, free: 4.16 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.47/1.47, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.2324/0.2324, allocations: 46.95 MB / 360.9 MB, free: 4.047 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.002062/0.002062, allocations: 67.89 kB / 0.4961 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.327, allocations: 66.03 MB / 0.5606 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004056/0.331, allocations: 2.655 MB / 0.5632 GB, free: 1.598 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001337/0.3324, allocations: 0.7362 MB / 0.5639 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.3325, allocations: 11.94 kB / 0.5639 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000172/0.3327, allocations: 55.38 kB / 0.564 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000244/0.3329, allocations: 138.8 kB / 0.5641 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000308/0.3333, allocations: 99.88 kB / 0.5642 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004481/0.3337, allocations: 437.9 kB / 0.5646 GB, free: 128 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002272/0.3339, allocations: 107.8 kB / 0.5647 GB, free: 12 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002938/0.3342, allocations: 179.4 kB / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002192/0.3344, allocations: 155.2 kB / 0.565 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.082e-05/0.3345, allocations: 32 kB / 0.5651 GB, free: 15.65 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001134/0.3346, allocations: 36 kB / 0.5651 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.16e-05/0.3347, allocations: 83.69 kB / 0.5652 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001665/0.3348, allocations: 171.2 kB / 0.5653 GB, free: 15.37 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004847/0.3353, allocations: 446.1 kB / 0.5658 GB, free: 14.93 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.3353, allocations: 3.984 kB / 0.5658 GB, free: 14.93 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3353, allocations: 0 / 0.5658 GB, free: 14.93 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.3353, allocations: 0 / 0.5658 GB, free: 14.93 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.0009565/0.3363, allocations: 0.5872 MB / 0.5663 GB, free: 14.31 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.3363, allocations: 8.031 kB / 0.5664 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.37e-05/0.3364, allocations: 74.72 kB / 0.5664 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003068/0.3367, allocations: 60.62 kB / 0.5665 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003947/0.3371, allocations: 217.9 kB / 0.5667 GB, free: 13.92 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.181e-05/0.3372, allocations: 29.38 kB / 0.5667 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.907e-05/0.3372, allocations: 44.33 kB / 0.5668 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006311/0.3379, allocations: 394.3 kB / 0.5671 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.848e-05/0.3379, allocations: 15.89 kB / 0.5672 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.421e-05/0.3379, allocations: 16 kB / 0.5672 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.3379, allocations: 8 kB / 0.5672 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000427/0.3384, allocations: 215.7 kB / 0.5674 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002273/0.3406, allocations: 1.609 MB / 0.569 GB, free: 11.47 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000451/0.3411, allocations: 246.4 kB / 0.5692 GB, free: 11.17 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.3412, allocations: 90.02 kB / 0.5693 GB, free: 11.06 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.3413, allocations: 4 kB / 0.5693 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.375e-05/0.3413, allocations: 54.48 kB / 0.5693 GB, free: 10.99 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.533e-06/0.3413, allocations: 0 / 0.5693 GB, free: 10.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006658/0.342, allocations: 265.6 kB / 0.5696 GB, free: 10.73 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001236/0.3421, allocations: 209.6 kB / 0.5698 GB, free: 10.47 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003028/0.3424, allocations: 292.3 kB / 0.5701 GB, free: 10.18 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/0.3424, allocations: 29.7 kB / 0.5701 GB, free: 10.15 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.3426, allocations: 244 kB / 0.5703 GB, free: 9.906 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.3427, allocations: 127.4 kB / 0.5704 GB, free: 9.781 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.3428, allocations: 106.2 kB / 0.5705 GB, free: 9.672 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.343, allocations: 350.7 kB / 0.5709 GB, free: 9.32 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/0.3432, allocations: 97.27 kB / 0.571 GB, free: 9.223 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004763/0.3437, allocations: 428.8 kB / 0.5714 GB, free: 8.648 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000742/0.3444, allocations: 0.5746 MB / 0.5719 GB, free: 7.914 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.3444, allocations: 0 / 0.5719 GB, free: 7.914 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008793/0.3453, allocations: 0.5243 MB / 0.5725 GB, free: 7.383 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.3453, allocations: 15.94 kB / 0.5725 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/0.3454, allocations: 16.83 kB / 0.5725 GB, free: 7.352 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.564e-05/0.3454, allocations: 12 kB / 0.5725 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004383/0.3458, allocations: 151.8 kB / 0.5726 GB, free: 7.191 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.284e-05/0.3459, allocations: 23.92 kB / 0.5727 GB, free: 7.168 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002898/0.3461, allocations: 59.62 kB / 0.5727 GB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.832e-05/0.3462, allocations: 31.98 kB / 0.5728 GB, free: 7.078 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.0002004/0.3464, allocations: 185.5 kB / 0.5729 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.3465, allocations: 35.77 kB / 0.573 GB, free: 6.852 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.181e-05/0.3466, allocations: 37.83 kB / 0.573 GB, free: 6.812 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.3466, allocations: 4 kB / 0.573 GB, free: 6.809 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3466, allocations: 0 / 0.573 GB, free: 6.809 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.3466, allocations: 8 kB / 0.573 GB, free: 6.801 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.3479, allocations: 0.6075 MB / 0.5736 GB, free: 6.137 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.3479, allocations: 4 kB / 0.5736 GB, free: 6.133 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004317/0.3483, allocations: 87.89 kB / 0.5737 GB, free: 6.047 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.3483, allocations: 4 kB / 0.5737 GB, free: 6.043 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.131e-05/0.3484, allocations: 11.98 kB / 0.5737 GB, free: 6.031 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.3484, allocations: 7.938 kB / 0.5737 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.3484, allocations: 4 kB / 0.5737 GB, free: 6.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008219/0.3492, allocations: 0.8338 MB / 0.5745 GB, free: 5.152 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.091e-05/0.3493, allocations: 27.75 kB / 0.5746 GB, free: 5.125 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.747e-05/0.3493, allocations: 15.94 kB / 0.5746 GB, free: 5.109 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003389/0.3496, allocations: 12.11 kB / 0.5746 GB, free: 5.098 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.03e-05/0.3497, allocations: 23.97 kB / 0.5746 GB, free: 5.074 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.3497, allocations: 15.92 kB / 0.5746 GB, free: 5.059 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001855/0.3499, allocations: 191 kB / 0.5748 GB, free: 4.871 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3499, allocations: 0 / 0.5748 GB, free: 4.871 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007097/0.3506, allocations: 99.89 kB / 0.5749 GB, free: 4.773 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.001088/0.3517, allocations: 1.383 MB / 0.5763 GB, free: 3.355 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005199/0.3522, allocations: 286.9 kB / 0.5765 GB, free: 3.078 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3522, allocations: 0 / 0.5765 GB, free: 3.078 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000168/0.3524, allocations: 88.89 kB / 0.5766 GB, free: 2.992 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009523/0.3533, allocations: 76.34 kB / 0.5767 GB, free: 2.922 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0061/0.3594, allocations: 4.936 MB / 0.5815 GB, free: 13.54 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002197/0.3597, allocations: 190.5 kB / 0.5817 GB, free: 13.34 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001713/0.3598, allocations: 47.25 kB / 0.5817 GB, free: 13.29 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001596/0.36, allocations: 127.3 kB / 0.5819 GB, free: 13.16 MB / 430.1 MB Notification: Performance of SimCode: time 8.31e-07/0.36, allocations: 0 / 0.5819 GB, free: 13.16 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0364/0.3964, allocations: 7.343 MB / 0.589 GB, free: 6.016 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.8, allocations: 8 kB / 0.589 GB, free: 6.008 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.858015635982156]