Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.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.001977/0.001977, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.002562/0.002562, allocations: 214.1 kB / 24.52 MB, free: 3.941 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.545/1.545, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.2326/0.2326, allocations: 44.94 MB / 359.6 MB, free: 6.055 MB / 286.1 MB " [Timeout remaining time 180] 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.Directions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions",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.002054/0.002054, allocations: 63.91 kB / 0.4938 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3664/0.3684, allocations: 65.47 MB / 0.5577 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.004825/0.3732, allocations: 2.65 MB / 0.5603 GB, free: 4.883 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001727/0.375, allocations: 0.7789 MB / 0.5611 GB, free: 4.098 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001982/0.3752, allocations: 15.88 kB / 0.5611 GB, free: 4.082 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002275/0.3754, allocations: 59.38 kB / 0.5611 GB, free: 4.023 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000285/0.3757, allocations: 122.8 kB / 0.5613 GB, free: 3.902 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004139/0.3761, allocations: 119.8 kB / 0.5614 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005749/0.3767, allocations: 458.3 kB / 0.5618 GB, free: 3.332 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003599/0.377, allocations: 140.6 kB / 0.5619 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003615/0.3774, allocations: 187.3 kB / 0.5621 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002656/0.3776, allocations: 187.2 kB / 0.5623 GB, free: 2.824 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.896e-05/0.3777, allocations: 36 kB / 0.5623 GB, free: 2.789 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.3778, allocations: 40 kB / 0.5624 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.29e-05/0.3779, allocations: 83.64 kB / 0.5624 GB, free: 2.668 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001877/0.3781, allocations: 167.2 kB / 0.5626 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005658/0.3787, allocations: 462 kB / 0.563 GB, free: 2.051 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.3787, allocations: 8 kB / 0.5631 GB, free: 2.043 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3787, allocations: 0 / 0.5631 GB, free: 2.043 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.3787, allocations: 0 / 0.5631 GB, free: 2.043 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001137/0.3798, allocations: 0.6144 MB / 0.5637 GB, free: 1.395 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.3799, allocations: 12.03 kB / 0.5637 GB, free: 1.383 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.048e-05/0.3799, allocations: 9.188 kB / 0.5637 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.242e-05/0.38, allocations: 74.72 kB / 0.5637 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003605/0.3803, allocations: 76.62 kB / 0.5638 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004811/0.3808, allocations: 234.7 kB / 0.564 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.256e-05/0.3808, allocations: 29.38 kB / 0.5641 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.359e-05/0.3809, allocations: 44.31 kB / 0.5641 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007648/0.3817, allocations: 381 kB / 0.5645 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.779e-05/0.3817, allocations: 11.95 kB / 0.5645 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.779e-05/0.3817, allocations: 16 kB / 0.5645 GB, free: 488 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.3818, allocations: 8 kB / 0.5645 GB, free: 480 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005392/0.3823, allocations: 252.3 kB / 0.5648 GB, free: 228 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001791/0.3841, allocations: 0.9809 MB / 0.5657 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005971/0.3847, allocations: 327.4 kB / 0.566 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003028/0.385, allocations: 154.5 kB / 0.5662 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.385, allocations: 4 kB / 0.5662 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/0.3851, allocations: 46.44 kB / 0.5662 GB, free: 14.62 MB / 414.1 MB Notification: Performance of pre-optimization done (n=39): time 2.735e-06/0.3851, allocations: 0 / 0.5662 GB, free: 14.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=57): time 0.004091/0.3891, allocations: 2.014 MB / 0.5682 GB, free: 12.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.879e-05/0.3892, allocations: 110.8 kB / 0.5683 GB, free: 12.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003078/0.3895, allocations: 245.8 kB / 0.5685 GB, free: 12.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.267e-05/0.3896, allocations: 37.7 kB / 0.5686 GB, free: 12.03 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001574/0.3897, allocations: 184.9 kB / 0.5687 GB, free: 11.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001944/0.3899, allocations: 210.2 kB / 0.5689 GB, free: 11.64 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/0.3901, allocations: 82.34 kB / 0.569 GB, free: 11.55 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.3903, allocations: 350.8 kB / 0.5694 GB, free: 11.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002822/0.3906, allocations: 129.2 kB / 0.5695 GB, free: 11.08 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003671/0.3909, allocations: 232.7 kB / 0.5697 GB, free: 10.81 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007041/0.3916, allocations: 402 kB / 0.5701 GB, free: 10.38 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.3916, allocations: 8 kB / 0.5701 GB, free: 10.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001147/0.3928, allocations: 0.5462 MB / 0.5706 GB, free: 9.812 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.741e-05/0.3928, allocations: 6.344 kB / 0.5706 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.3928, allocations: 4 kB / 0.5706 GB, free: 9.805 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004121/0.3932, allocations: 134.7 kB / 0.5708 GB, free: 9.664 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004228/0.3937, allocations: 95.89 kB / 0.5708 GB, free: 9.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004872/0.3985, allocations: 4.88 MB / 0.5756 GB, free: 4.352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003225/0.3988, allocations: 19.98 kB / 0.5756 GB, free: 4.332 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.411e-05/0.3989, allocations: 23.94 kB / 0.5757 GB, free: 4.309 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002544/0.3991, allocations: 177.7 kB / 0.5758 GB, free: 4.125 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.3993, allocations: 39.77 kB / 0.5759 GB, free: 4.086 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.3994, allocations: 46.11 kB / 0.5759 GB, free: 4.039 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.3994, allocations: 11.94 kB / 0.5759 GB, free: 4.027 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.484e-05/0.3994, allocations: 4.188 kB / 0.5759 GB, free: 4.023 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.3994, allocations: 3.984 kB / 0.5759 GB, free: 4.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002212/0.4016, allocations: 1.229 MB / 0.5771 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.4016, allocations: 4 kB / 0.5771 GB, free: 2.719 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004465/0.4021, allocations: 95.88 kB / 0.5772 GB, free: 2.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003142/0.4024, allocations: 102.4 kB / 0.5773 GB, free: 2.516 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/0.4024, allocations: 12.09 kB / 0.5773 GB, free: 2.504 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003967/0.4064, allocations: 4.106 MB / 0.5813 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.4064, allocations: 4.031 kB / 0.5813 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001597/0.408, allocations: 0.918 MB / 0.5822 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.775e-05/0.4081, allocations: 35.83 kB / 0.5823 GB, free: 13.06 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.813e-05/0.4081, allocations: 8 kB / 0.5823 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002825/0.4084, allocations: 24.05 kB / 0.5823 GB, free: 13.03 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.4085, allocations: 51.8 kB / 0.5824 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.015e-05/0.4086, allocations: 19.98 kB / 0.5824 GB, free: 12.96 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002014/0.4088, allocations: 177.2 kB / 0.5825 GB, free: 12.78 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4088, allocations: 0 / 0.5825 GB, free: 12.78 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000735/0.4095, allocations: 116 kB / 0.5827 GB, free: 12.67 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.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 (48): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001794/0.4113, allocations: 1.477 MB / 0.5841 GB, free: 11.15 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001423/0.4127, allocations: 0.7611 MB / 0.5848 GB, free: 10.35 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.4127, allocations: 8 kB / 0.5848 GB, free: 10.34 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008638/0.4136, allocations: 0.5544 MB / 0.5854 GB, free: 9.75 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007067/0.4143, allocations: 70.98 kB / 0.5855 GB, free: 9.688 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006528/0.4208, allocations: 4.183 MB / 0.5895 GB, free: 5.32 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002931/0.4211, allocations: 224.9 kB / 0.5898 GB, free: 5.074 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001692/0.4213, allocations: 39.2 kB / 0.5898 GB, free: 5.035 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002119/0.4215, allocations: 127.4 kB / 0.5899 GB, free: 4.914 MB / 430.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4215, allocations: 0 / 0.5899 GB, free: 4.914 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04148/0.463, allocations: 8.957 MB / 0.5987 GB, free: 12.15 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/13.1, allocations: 4.062 kB / 0.5987 GB, free: 12.14 MB / 446.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.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: 16.521944841952063]