Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002001/0.002001, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002343/0.002343, allocations: 207.4 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.506/1.506, allocations: 230.5 MB / 258.2 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2552/0.2552, allocations: 46.92 MB / 361.6 MB, free: 4.188 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002661/0.002661, allocations: 79.88 kB / 0.497 GB, free: 7.762 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3355, allocations: 66.08 MB / 0.5615 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.00451/0.34, allocations: 2.863 MB / 0.5643 GB, free: 1.434 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001647/0.3417, allocations: 0.7829 MB / 0.5651 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002936/0.342, allocations: 11.94 kB / 0.5651 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002287/0.3422, allocations: 59.38 kB / 0.5651 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002864/0.3425, allocations: 126.8 kB / 0.5652 GB, free: 460 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003829/0.3429, allocations: 115.8 kB / 0.5654 GB, free: 344 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005809/0.3434, allocations: 434.1 kB / 0.5658 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002524/0.3437, allocations: 112 kB / 0.5659 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003234/0.344, allocations: 179.2 kB / 0.5661 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002824/0.3443, allocations: 175.2 kB / 0.5662 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.297e-05/0.3443, allocations: 32 kB / 0.5662 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.742e-05/0.3444, allocations: 36 kB / 0.5663 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.638e-05/0.3445, allocations: 83.69 kB / 0.5664 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002046/0.3447, allocations: 199.1 kB / 0.5666 GB, free: 15.1 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005893/0.3453, allocations: 450 kB / 0.567 GB, free: 14.66 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.3453, allocations: 4 kB / 0.567 GB, free: 14.66 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3453, allocations: 0 / 0.567 GB, free: 14.66 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.3453, allocations: 0 / 0.567 GB, free: 14.66 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.001042/0.3464, allocations: 0.5833 MB / 0.5676 GB, free: 14.04 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.3464, allocations: 8.031 kB / 0.5676 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.151e-05/0.3464, allocations: 17.19 kB / 0.5676 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.98e-05/0.3465, allocations: 78.7 kB / 0.5677 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002716/0.3468, allocations: 60.62 kB / 0.5677 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000461/0.3473, allocations: 218.8 kB / 0.5679 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.557e-05/0.3473, allocations: 25.38 kB / 0.5679 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.566e-05/0.3474, allocations: 44.33 kB / 0.568 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006726/0.348, allocations: 394.1 kB / 0.5684 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.011e-05/0.3481, allocations: 11.89 kB / 0.5684 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.413e-05/0.3481, allocations: 16 kB / 0.5684 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.3481, allocations: 12 kB / 0.5684 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004641/0.3486, allocations: 223.7 kB / 0.5686 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002525/0.3511, allocations: 1.664 MB / 0.5702 GB, free: 11.12 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005038/0.3516, allocations: 262.4 kB / 0.5705 GB, free: 10.8 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.3518, allocations: 90.02 kB / 0.5706 GB, free: 10.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.3518, allocations: 4 kB / 0.5706 GB, free: 10.69 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.14e-05/0.3518, allocations: 50.48 kB / 0.5706 GB, free: 10.63 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.963e-06/0.3518, allocations: 0 / 0.5706 GB, free: 10.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007529/0.3526, allocations: 265.2 kB / 0.5709 GB, free: 10.37 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001312/0.3527, allocations: 214 kB / 0.5711 GB, free: 10.11 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003078/0.353, allocations: 276.5 kB / 0.5713 GB, free: 9.836 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.937e-05/0.3531, allocations: 33.7 kB / 0.5714 GB, free: 9.797 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001896/0.3533, allocations: 244 kB / 0.5716 GB, free: 9.551 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.3534, allocations: 123 kB / 0.5717 GB, free: 9.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001552/0.3535, allocations: 102.3 kB / 0.5718 GB, free: 9.324 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.3537, allocations: 350.7 kB / 0.5722 GB, free: 8.973 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002297/0.3539, allocations: 101.2 kB / 0.5723 GB, free: 8.871 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005081/0.3544, allocations: 432.8 kB / 0.5727 GB, free: 8.293 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008341/0.3553, allocations: 0.5667 MB / 0.5732 GB, free: 7.566 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.3553, allocations: 4 kB / 0.5732 GB, free: 7.562 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009925/0.3563, allocations: 0.5248 MB / 0.5737 GB, free: 7.031 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.721e-05/0.3563, allocations: 11.98 kB / 0.5738 GB, free: 7.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.3563, allocations: 12 kB / 0.5738 GB, free: 7.008 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.188e-05/0.3564, allocations: 16 kB / 0.5738 GB, free: 6.992 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004774/0.3568, allocations: 147.8 kB / 0.5739 GB, free: 6.848 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.931e-05/0.3569, allocations: 27.86 kB / 0.5739 GB, free: 6.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003301/0.3572, allocations: 59.97 kB / 0.574 GB, free: 6.762 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.098e-05/0.3572, allocations: 39.94 kB / 0.574 GB, free: 6.723 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.0002265/0.3575, allocations: 181.5 kB / 0.5742 GB, free: 6.535 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.3576, allocations: 31.81 kB / 0.5742 GB, free: 6.504 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.173e-05/0.3577, allocations: 33.83 kB / 0.5743 GB, free: 6.469 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.3577, allocations: 4 kB / 0.5743 GB, free: 6.465 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.3577, allocations: 4 kB / 0.5743 GB, free: 6.461 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.3577, allocations: 0 / 0.5743 GB, free: 6.461 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001432/0.3592, allocations: 0.6314 MB / 0.5749 GB, free: 5.773 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.3592, allocations: 7.984 kB / 0.5749 GB, free: 5.766 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004665/0.3596, allocations: 88.02 kB / 0.575 GB, free: 5.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.565e-06/0.3596, allocations: 7.938 kB / 0.575 GB, free: 5.672 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.022e-05/0.3597, allocations: 11.94 kB / 0.575 GB, free: 5.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.658e-06/0.3597, allocations: 7.984 kB / 0.575 GB, free: 5.652 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3597, allocations: 4 kB / 0.575 GB, free: 5.648 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008715/0.3606, allocations: 0.8338 MB / 0.5758 GB, free: 4.781 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.755e-05/0.3606, allocations: 35.73 kB / 0.5759 GB, free: 4.746 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.036e-05/0.3607, allocations: 11.94 kB / 0.5759 GB, free: 4.734 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003475/0.361, allocations: 8 kB / 0.5759 GB, free: 4.727 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.737e-05/0.3611, allocations: 23.95 kB / 0.5759 GB, free: 4.703 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.3611, allocations: 12 kB / 0.5759 GB, free: 4.691 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002031/0.3613, allocations: 187.1 kB / 0.5761 GB, free: 4.508 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3613, allocations: 0 / 0.5761 GB, free: 4.508 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007934/0.3621, allocations: 99.89 kB / 0.5762 GB, free: 4.41 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.00128/0.3634, allocations: 1.386 MB / 0.5776 GB, free: 2.988 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006749/0.3641, allocations: 289.9 kB / 0.5778 GB, free: 2.707 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.3641, allocations: 0 / 0.5778 GB, free: 2.707 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001893/0.3643, allocations: 92.33 kB / 0.5779 GB, free: 2.617 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.3653, allocations: 81.48 kB / 0.578 GB, free: 2.547 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007115/0.3724, allocations: 4.948 MB / 0.5828 GB, free: 13.16 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005777/0.373, allocations: 0.7951 MB / 0.5836 GB, free: 12.34 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000225/0.3732, allocations: 47.2 kB / 0.5836 GB, free: 12.29 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/0.3734, allocations: 123.4 kB / 0.5838 GB, free: 12.17 MB / 430.1 MB Notification: Performance of SimCode: time 1.854e-06/0.3734, allocations: 0 / 0.5838 GB, free: 12.17 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03247/0.4059, allocations: 7.138 MB / 0.5907 GB, free: 5.168 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.34, allocations: 11.56 kB / 0.5907 GB, free: 5.16 MB / 430.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.761053685040679]