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.001835/0.001835, allocations: 120.4 kB / 20.44 MB, free: 1.461 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.00198/0.00198, allocations: 212.1 kB / 23.74 MB, free: 4.695 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.495/1.495, allocations: 230.5 MB / 257.4 MB, free: 8.184 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.2376/0.2376, allocations: 46.93 MB / 360.8 MB, free: 4.203 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00232/0.00232, allocations: 83.88 kB / 0.4962 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3276, allocations: 66.08 MB / 0.5607 GB, free: 4.305 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004293/0.3319, allocations: 2.864 MB / 0.5635 GB, free: 1.434 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.3334, allocations: 0.7868 MB / 0.5643 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001601/0.3335, allocations: 15.88 kB / 0.5643 GB, free: 0.625 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001864/0.3337, allocations: 59.38 kB / 0.5644 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002461/0.3339, allocations: 122.9 kB / 0.5645 GB, free: 456 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003308/0.3343, allocations: 115.8 kB / 0.5646 GB, free: 340 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000502/0.3348, allocations: 430.1 kB / 0.565 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002606/0.335, allocations: 111.9 kB / 0.5651 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003095/0.3353, allocations: 187.3 kB / 0.5653 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002556/0.3356, allocations: 175.2 kB / 0.5655 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.456e-05/0.3357, allocations: 32 kB / 0.5655 GB, free: 15.4 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.3358, allocations: 36 kB / 0.5655 GB, free: 15.37 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.51e-05/0.3358, allocations: 75.7 kB / 0.5656 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.336, allocations: 202.9 kB / 0.5658 GB, free: 15.1 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005309/0.3366, allocations: 450 kB / 0.5662 GB, free: 14.66 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3366, allocations: 0 / 0.5662 GB, free: 14.66 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3366, allocations: 0 / 0.5662 GB, free: 14.66 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.3366, allocations: 0 / 0.5662 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.001039/0.3376, allocations: 0.5833 MB / 0.5668 GB, free: 14.04 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.3377, allocations: 15.97 kB / 0.5668 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.568e-05/0.3377, allocations: 82.7 kB / 0.5669 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002559/0.338, allocations: 56.69 kB / 0.5669 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004095/0.3384, allocations: 218.8 kB / 0.5671 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.3384, allocations: 21.38 kB / 0.5672 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.369e-05/0.3385, allocations: 48.33 kB / 0.5672 GB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006717/0.3392, allocations: 394.3 kB / 0.5676 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.3392, allocations: 7.953 kB / 0.5676 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.3392, allocations: 16 kB / 0.5676 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.3393, allocations: 11.94 kB / 0.5676 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004477/0.3397, allocations: 219.8 kB / 0.5678 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00234/0.342, allocations: 1.667 MB / 0.5695 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004523/0.3425, allocations: 258.4 kB / 0.5697 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001664/0.3427, allocations: 94.02 kB / 0.5698 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.3427, allocations: 4 kB / 0.5698 GB, free: 10.7 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.909e-05/0.3427, allocations: 50.48 kB / 0.5698 GB, free: 10.64 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.834e-06/0.3427, allocations: 0 / 0.5698 GB, free: 10.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006877/0.3434, allocations: 261.2 kB / 0.5701 GB, free: 10.38 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/0.3436, allocations: 213.6 kB / 0.5703 GB, free: 10.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002805/0.3438, allocations: 280.8 kB / 0.5706 GB, free: 9.848 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.916e-05/0.3439, allocations: 29.7 kB / 0.5706 GB, free: 9.812 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.3441, allocations: 248.2 kB / 0.5708 GB, free: 9.566 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.3442, allocations: 126.9 kB / 0.571 GB, free: 9.441 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.3443, allocations: 102.3 kB / 0.5711 GB, free: 9.336 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.3445, allocations: 346.7 kB / 0.5714 GB, free: 8.988 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.3447, allocations: 93.27 kB / 0.5715 GB, free: 8.895 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004706/0.3451, allocations: 441.3 kB / 0.5719 GB, free: 8.309 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007369/0.3459, allocations: 0.5624 MB / 0.5724 GB, free: 7.586 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.3459, allocations: 4 kB / 0.5724 GB, free: 7.582 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008996/0.3468, allocations: 0.5371 MB / 0.573 GB, free: 7.039 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.3468, allocations: 8 kB / 0.573 GB, free: 7.031 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/0.3468, allocations: 16 kB / 0.573 GB, free: 7.016 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.06e-05/0.3469, allocations: 16 kB / 0.573 GB, free: 7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004324/0.3473, allocations: 147.8 kB / 0.5731 GB, free: 6.855 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.98e-05/0.3473, allocations: 23.86 kB / 0.5732 GB, free: 6.832 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002777/0.3476, allocations: 59.62 kB / 0.5732 GB, free: 6.773 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.186e-05/0.3476, allocations: 39.98 kB / 0.5733 GB, free: 6.734 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.0001853/0.3478, allocations: 189.5 kB / 0.5734 GB, free: 6.539 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.348, allocations: 31.81 kB / 0.5735 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.01e-05/0.3481, allocations: 33.83 kB / 0.5735 GB, free: 6.473 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.3481, allocations: 4 kB / 0.5735 GB, free: 6.469 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.3481, allocations: 7.938 kB / 0.5735 GB, free: 6.461 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3481, allocations: 0 / 0.5735 GB, free: 6.461 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001268/0.3493, allocations: 0.6309 MB / 0.5741 GB, free: 5.773 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3493, allocations: 0 / 0.5741 GB, free: 5.773 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004344/0.3498, allocations: 83.95 kB / 0.5742 GB, free: 5.691 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.3498, allocations: 4 kB / 0.5742 GB, free: 5.688 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.475e-05/0.3498, allocations: 8 kB / 0.5742 GB, free: 5.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.428e-06/0.3498, allocations: 15.86 kB / 0.5742 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.3498, allocations: 4 kB / 0.5742 GB, free: 5.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00081/0.3506, allocations: 0.8322 MB / 0.5751 GB, free: 4.797 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.427e-05/0.3507, allocations: 35.73 kB / 0.5751 GB, free: 4.762 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.505e-05/0.3507, allocations: 15.94 kB / 0.5751 GB, free: 4.746 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003331/0.3511, allocations: 4 kB / 0.5751 GB, free: 4.742 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.472e-05/0.3511, allocations: 23.95 kB / 0.5751 GB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.615e-05/0.3512, allocations: 12.12 kB / 0.5751 GB, free: 4.707 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001861/0.3513, allocations: 187.1 kB / 0.5753 GB, free: 4.523 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3513, allocations: 4 kB / 0.5753 GB, free: 4.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007132/0.3521, allocations: 99.89 kB / 0.5754 GB, free: 4.422 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.001102/0.3532, allocations: 1.383 MB / 0.5768 GB, free: 3.004 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005551/0.3537, allocations: 294.4 kB / 0.5771 GB, free: 2.719 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.3537, allocations: 8.062 kB / 0.5771 GB, free: 2.711 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001631/0.3539, allocations: 79.83 kB / 0.5771 GB, free: 2.633 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009773/0.3549, allocations: 73.06 kB / 0.5772 GB, free: 2.562 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00631/0.3612, allocations: 4.952 MB / 0.582 GB, free: 13.16 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004817/0.3616, allocations: 0.7912 MB / 0.5828 GB, free: 12.35 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001682/0.3618, allocations: 43.27 kB / 0.5829 GB, free: 12.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001792/0.362, allocations: 119.4 kB / 0.583 GB, free: 12.19 MB / 430.1 MB Notification: Performance of SimCode: time 9.02e-07/0.362, allocations: 0 / 0.583 GB, free: 12.19 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03541/0.3974, allocations: 7.123 MB / 0.5899 GB, free: 5.188 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.31, allocations: 6.188 kB / 0.5899 GB, free: 5.188 MB / 430.1 MB " [Timeout remaining time 648] (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.447155402973294]