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.001769/0.001769, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.002288/0.002288, allocations: 216.2 kB / 24.53 MB, free: 4.066 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.61/1.61, allocations: 230.6 MB / 258.3 MB, free: 7.988 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.2211/0.2211, allocations: 44.92 MB / 359.6 MB, free: 6.262 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.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",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.001932/0.001932, allocations: 63.91 kB / 0.4938 GB, free: 10.71 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3268, allocations: 65.47 MB / 0.5578 GB, free: 7.52 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004142/0.331, allocations: 2.873 MB / 0.5606 GB, free: 4.871 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.3322, allocations: 0.779 MB / 0.5613 GB, free: 4.086 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.3324, allocations: 15.88 kB / 0.5614 GB, free: 4.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001817/0.3326, allocations: 55.44 kB / 0.5614 GB, free: 4.016 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002165/0.3328, allocations: 130.8 kB / 0.5615 GB, free: 3.887 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003191/0.3331, allocations: 115.8 kB / 0.5617 GB, free: 3.773 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004517/0.3336, allocations: 437.9 kB / 0.5621 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000217/0.3338, allocations: 112 kB / 0.5622 GB, free: 3.227 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002674/0.334, allocations: 175.4 kB / 0.5623 GB, free: 3.055 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002401/0.3343, allocations: 179.2 kB / 0.5625 GB, free: 2.879 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.707e-05/0.3343, allocations: 36 kB / 0.5625 GB, free: 2.844 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.593e-05/0.3344, allocations: 32 kB / 0.5626 GB, free: 2.812 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.292e-05/0.3345, allocations: 79.7 kB / 0.5627 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000187/0.3347, allocations: 203 kB / 0.5628 GB, free: 2.535 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004908/0.3352, allocations: 442.1 kB / 0.5633 GB, free: 2.102 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3352, allocations: 0 / 0.5633 GB, free: 2.102 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.3352, allocations: 4 kB / 0.5633 GB, free: 2.098 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.3352, allocations: 3.938 kB / 0.5633 GB, free: 2.094 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.001012/0.3362, allocations: 0.5833 MB / 0.5638 GB, free: 1.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.3362, allocations: 12.03 kB / 0.5639 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.444e-05/0.3363, allocations: 13.19 kB / 0.5639 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.791e-05/0.3363, allocations: 74.72 kB / 0.5639 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002585/0.3366, allocations: 60.67 kB / 0.564 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003789/0.337, allocations: 217.9 kB / 0.5642 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.337, allocations: 25.38 kB / 0.5642 GB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.695e-05/0.3371, allocations: 48.33 kB / 0.5643 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006257/0.3377, allocations: 398 kB / 0.5647 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/0.3377, allocations: 7.953 kB / 0.5647 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.3377, allocations: 16 kB / 0.5647 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.3378, allocations: 8 kB / 0.5647 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004183/0.3382, allocations: 222 kB / 0.5649 GB, free: 344 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002266/0.3404, allocations: 1.675 MB / 0.5665 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00044/0.3409, allocations: 262.2 kB / 0.5668 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.341, allocations: 86.08 kB / 0.5669 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.3411, allocations: 4 kB / 0.5669 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.175e-05/0.3411, allocations: 50.48 kB / 0.5669 GB, free: 14.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.423e-06/0.3411, allocations: 0 / 0.5669 GB, free: 14.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006843/0.3418, allocations: 261.2 kB / 0.5672 GB, free: 13.81 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/0.3419, allocations: 221.9 kB / 0.5674 GB, free: 13.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002823/0.3422, allocations: 272.5 kB / 0.5676 GB, free: 13.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.3422, allocations: 33.7 kB / 0.5677 GB, free: 13.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.3424, allocations: 248.1 kB / 0.5679 GB, free: 12.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.813e-05/0.3425, allocations: 127 kB / 0.568 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.3426, allocations: 98.3 kB / 0.5681 GB, free: 12.76 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.3428, allocations: 342.8 kB / 0.5685 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.343, allocations: 105.2 kB / 0.5686 GB, free: 12.31 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004556/0.3434, allocations: 428.8 kB / 0.569 GB, free: 11.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006812/0.3441, allocations: 0.5667 MB / 0.5695 GB, free: 11 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.3441, allocations: 4 kB / 0.5695 GB, free: 11 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008278/0.345, allocations: 0.5287 MB / 0.57 GB, free: 10.46 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.345, allocations: 15.94 kB / 0.57 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.345, allocations: 8 kB / 0.5701 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.702e-05/0.345, allocations: 16 kB / 0.5701 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004218/0.3454, allocations: 151.7 kB / 0.5702 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.19e-05/0.3455, allocations: 19.92 kB / 0.5702 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002812/0.3457, allocations: 59.91 kB / 0.5703 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.185e-05/0.3458, allocations: 39.94 kB / 0.5703 GB, free: 10.16 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.0001804/0.346, allocations: 185.5 kB / 0.5705 GB, free: 9.969 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.3461, allocations: 36.3 kB / 0.5705 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.735e-05/0.3462, allocations: 33.83 kB / 0.5706 GB, free: 9.898 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3462, allocations: 4 kB / 0.5706 GB, free: 9.895 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.3462, allocations: 4 kB / 0.5706 GB, free: 9.891 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.3462, allocations: 0 / 0.5706 GB, free: 9.891 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/0.3475, allocations: 0.6348 MB / 0.5712 GB, free: 9.199 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-06/0.3475, allocations: 0 / 0.5712 GB, free: 9.199 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004332/0.3479, allocations: 91.88 kB / 0.5713 GB, free: 9.109 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.3479, allocations: 4 kB / 0.5713 GB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/0.348, allocations: 11.94 kB / 0.5713 GB, free: 9.094 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.348, allocations: 4 kB / 0.5713 GB, free: 9.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.348, allocations: 4 kB / 0.5713 GB, free: 9.086 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000778/0.3487, allocations: 0.8338 MB / 0.5721 GB, free: 8.219 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.283e-05/0.3488, allocations: 35.73 kB / 0.5722 GB, free: 8.184 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.612e-05/0.3488, allocations: 11.94 kB / 0.5722 GB, free: 8.172 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003277/0.3492, allocations: 8 kB / 0.5722 GB, free: 8.164 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.353e-05/0.3492, allocations: 35.83 kB / 0.5722 GB, free: 8.129 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.3492, allocations: 8 kB / 0.5722 GB, free: 8.121 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001834/0.3494, allocations: 191.1 kB / 0.5724 GB, free: 7.934 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3494, allocations: 0 / 0.5724 GB, free: 7.934 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007254/0.3502, allocations: 99.89 kB / 0.5725 GB, free: 7.836 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.001127/0.3513, allocations: 1.387 MB / 0.5739 GB, free: 6.414 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005787/0.3519, allocations: 290.4 kB / 0.5741 GB, free: 6.133 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3519, allocations: 0 / 0.5741 GB, free: 6.133 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001675/0.352, allocations: 87.77 kB / 0.5742 GB, free: 6.047 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000976/0.353, allocations: 72.72 kB / 0.5743 GB, free: 5.977 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005997/0.359, allocations: 4.953 MB / 0.5791 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004555/0.3595, allocations: 0.799 MB / 0.5799 GB, free: 15.76 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001586/0.3596, allocations: 47.25 kB / 0.5799 GB, free: 15.71 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.3598, allocations: 115.4 kB / 0.5801 GB, free: 15.6 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3598, allocations: 0 / 0.5801 GB, free: 15.6 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02821/0.388, allocations: 7.152 MB / 0.587 GB, free: 8.621 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.2, allocations: 6.719 kB / 0.587 GB, free: 8.617 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: 15.662516530952416]