Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.0009104/0.0009104, allocations: 91.67 kB / 20.68 MB, free: 3.871 MB / 18.57 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.001336/0.001336, allocations: 166 kB / 23.95 MB, free: 0.5938 MB / 18.57 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 0.8945/0.8945, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.2446/0.2446, allocations: 34.25 MB / 294.9 MB, free: 0.707 MB / 266.7 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.Directions3,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 442.1 MB, free: 1.68 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.818e-05/1.962e-05, allocations: 6.281 kB / 442.2 MB, free: 1.672 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.001819/0.001839, allocations: 1.63 MB / 443.8 MB, free: 36 kB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1647/0.1665, allocations: 103.2 kB / 443.9 MB, free: 43.26 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.103e-05/0.1666, allocations: 2.844 kB / 443.9 MB, free: 43.26 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 4.993e-05/0.1667, allocations: 15.3 kB / 443.9 MB, free: 43.26 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 9.53e-05/0.1668, allocations: 36.41 kB / 443.9 MB, free: 43.26 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001161/0.1669, allocations: 26.25 kB / 444 MB, free: 43.26 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001047/0.167, allocations: 136.9 kB / 444.1 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.1671, allocations: 28 kB / 444.1 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.773e-05/0.1672, allocations: 71.17 kB / 444.2 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.49e-05/0.1672, allocations: 36.95 kB / 444.2 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.516e-05/0.1673, allocations: 14.25 kB / 444.2 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.29e-05/0.1673, allocations: 9.125 kB / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.89e-05/0.1673, allocations: 21.98 kB / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.258e-05/0.1673, allocations: 40.12 kB / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.1675, allocations: 123.6 kB / 444.4 MB, free: 43.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1675, allocations: 0 / 444.4 MB, free: 43.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1675, allocations: 1.781 kB / 444.4 MB, free: 43.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.1675, allocations: 0 / 444.4 MB, free: 43.2 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003134/0.1678, allocations: 334.7 kB / 444.8 MB, free: 42.91 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.1678, allocations: 11.7 kB / 444.8 MB, free: 42.91 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.464e-05/0.1678, allocations: 44.38 kB / 444.8 MB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.552e-05/0.1679, allocations: 10.27 kB / 444.8 MB, free: 42.87 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.168, allocations: 137.7 kB / 445 MB, free: 42.74 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.168, allocations: 12.61 kB / 445 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.242e-05/0.168, allocations: 11.91 kB / 445 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001434/0.1682, allocations: 137 kB / 445.1 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.1682, allocations: 7.328 kB / 445.1 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.1682, allocations: 6.656 kB / 445.1 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.1682, allocations: 7.062 kB / 445.1 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.95e-05/0.1683, allocations: 56.98 kB / 445.2 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004078/0.1687, allocations: 476 kB / 445.7 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.577e-05/0.1688, allocations: 85.69 kB / 445.7 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.455e-05/0.1688, allocations: 28.53 kB / 445.8 MB, free: 42.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.041e-05/0.1688, allocations: 2.844 kB / 445.8 MB, free: 42.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.265e-05/0.1688, allocations: 30.56 kB / 445.8 MB, free: 42.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=8): time 1.633e-06/0.1688, allocations: 0 / 445.8 MB, free: 42.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=8): time 0.000332/0.1691, allocations: 154.6 kB / 446 MB, free: 42.17 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.284e-05/0.1692, allocations: 81.05 kB / 446 MB, free: 42.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.956e-05/0.1692, allocations: 122.6 kB / 446.2 MB, free: 41.97 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.401e-06/0.1692, allocations: 28.55 kB / 446.2 MB, free: 41.94 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.842e-05/0.1692, allocations: 119.7 kB / 446.3 MB, free: 41.84 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.517e-05/0.1693, allocations: 29.91 kB / 446.3 MB, free: 41.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/0.1693, allocations: 42.69 kB / 446.4 MB, free: 41.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.803e-05/0.1693, allocations: 326.2 kB / 446.7 MB, free: 41.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.607e-05/0.1693, allocations: 21.23 kB / 446.7 MB, free: 41.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.934e-05/0.1694, allocations: 83.95 kB / 446.8 MB, free: 41.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.111e-05/0.1695, allocations: 122.5 kB / 446.9 MB, free: 41.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1695, allocations: 3.375 kB / 446.9 MB, free: 41.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001642/0.1696, allocations: 168.5 kB / 447.1 MB, free: 41.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.1697, allocations: 7.75 kB / 447.1 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1697, allocations: 2.656 kB / 447.1 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001532/0.1698, allocations: 37.39 kB / 447.1 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.376e-05/0.1699, allocations: 28.16 kB / 447.2 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001027/0.1709, allocations: 2.52 MB / 449.7 MB, free: 38.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.307e-05/0.171, allocations: 18.83 kB / 449.7 MB, free: 38.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.176e-06/0.171, allocations: 5.781 kB / 449.7 MB, free: 38.75 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 7.329e-05/0.171, allocations: 119.7 kB / 449.8 MB, free: 38.63 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.463e-05/0.1711, allocations: 6.922 kB / 449.8 MB, free: 38.63 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.739e-05/0.1711, allocations: 15.94 kB / 449.8 MB, free: 38.61 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.1711, allocations: 6.219 kB / 449.8 MB, free: 38.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1711, allocations: 3.938 kB / 449.8 MB, free: 38.61 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.1711, allocations: 2.906 kB / 449.8 MB, free: 38.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001418/0.1712, allocations: 168.2 kB / 450 MB, free: 38.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-06/0.1712, allocations: 2.969 kB / 450 MB, free: 38.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.658e-05/0.1713, allocations: 11.81 kB / 450 MB, free: 38.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.659e-05/0.1714, allocations: 35.98 kB / 450.1 MB, free: 38.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.717e-06/0.1714, allocations: 0 / 450.1 MB, free: 38.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006764/0.1721, allocations: 2.529 MB / 452.6 MB, free: 35.86 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1721, allocations: 0 / 452.6 MB, free: 35.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001361/0.1722, allocations: 302.2 kB / 452.9 MB, free: 35.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.941e-06/0.1722, allocations: 9.984 kB / 452.9 MB, free: 35.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.975e-06/0.1722, allocations: 2.75 kB / 452.9 MB, free: 35.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.637e-05/0.1723, allocations: 4 kB / 452.9 MB, free: 35.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.728e-05/0.1723, allocations: 6.281 kB / 452.9 MB, free: 35.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-06/0.1723, allocations: 3 kB / 452.9 MB, free: 35.6 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.249e-05/0.1723, allocations: 95.42 kB / 453 MB, free: 35.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1723, allocations: 0 / 453 MB, free: 35.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002269/0.1725, allocations: 40.77 kB / 453 MB, free: 35.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * 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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002514/0.1728, allocations: 0.8306 MB / 453.9 MB, free: 34.72 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002715/0.1731, allocations: 309.5 kB / 454.2 MB, free: 34.47 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1731, allocations: 0 / 454.2 MB, free: 34.47 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.31e-05/0.1731, allocations: 255.6 kB / 454.4 MB, free: 34.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003746/0.1735, allocations: 29.03 kB / 454.5 MB, free: 34.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.1746, allocations: 1.886 MB / 456.3 MB, free: 32.55 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.596e-05/0.1747, allocations: 100.6 kB / 456.4 MB, free: 32.48 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.695e-05/0.1747, allocations: 4.969 kB / 456.4 MB, free: 32.47 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.006e-05/0.1748, allocations: 33.55 kB / 456.5 MB, free: 32.45 MB / 410.7 MB Notification: Performance of SimCode: time 1.002e-06/0.1748, allocations: 3.938 kB / 456.5 MB, free: 32.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01918/0.194, allocations: 3.786 MB / 460.3 MB, free: 31.35 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.911/7.105, allocations: 9.906 kB / 460.3 MB, free: 31.35 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions3_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.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: 9.06186015252024]