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.001323/0.001323, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001592/0.001592, allocations: 212.7 kB / 24.52 MB, free: 3.91 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: 7.789 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.2364/0.2364, allocations: 46.96 MB / 361.6 MB, free: 3.902 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.002364/0.002364, allocations: 79.88 kB / 0.4969 GB, free: 7.535 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3189, allocations: 66.08 MB / 0.5614 GB, free: 4.004 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004323/0.3232, allocations: 2.644 MB / 0.564 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.3247, allocations: 0.744 MB / 0.5647 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002199/0.3249, allocations: 11.94 kB / 0.5648 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000218/0.3251, allocations: 55.39 kB / 0.5648 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002841/0.3254, allocations: 138.8 kB / 0.5649 GB, free: 408 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003592/0.3258, allocations: 99.86 kB / 0.565 GB, free: 308 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005217/0.3263, allocations: 441.9 kB / 0.5655 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002312/0.3265, allocations: 107.8 kB / 0.5656 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003231/0.3269, allocations: 187.4 kB / 0.5657 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002526/0.3271, allocations: 175.2 kB / 0.5659 GB, free: 15.4 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.349e-05/0.3272, allocations: 32 kB / 0.5659 GB, free: 15.37 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.3273, allocations: 39.98 kB / 0.566 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.877e-05/0.3273, allocations: 83.7 kB / 0.5661 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.3275, allocations: 163.2 kB / 0.5662 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005504/0.3281, allocations: 446.1 kB / 0.5666 GB, free: 14.65 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.3281, allocations: 0 / 0.5666 GB, free: 14.65 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3281, allocations: 0 / 0.5666 GB, free: 14.65 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.507e-06/0.3281, allocations: 0 / 0.5666 GB, free: 14.65 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.001056/0.3291, allocations: 0.5872 MB / 0.5672 GB, free: 14.03 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.3292, allocations: 15.97 kB / 0.5672 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.162e-05/0.3292, allocations: 9.188 kB / 0.5672 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.887e-05/0.3293, allocations: 74.72 kB / 0.5673 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002869/0.3296, allocations: 64.67 kB / 0.5674 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004109/0.33, allocations: 206.8 kB / 0.5676 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.101e-05/0.33, allocations: 29.38 kB / 0.5676 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.228e-05/0.3301, allocations: 48.31 kB / 0.5676 GB, free: 13.56 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007051/0.3308, allocations: 390.1 kB / 0.568 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.356e-05/0.3308, allocations: 19.88 kB / 0.568 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.526e-05/0.3309, allocations: 16 kB / 0.568 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.3309, allocations: 8 kB / 0.5681 GB, free: 13.1 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004684/0.3313, allocations: 219 kB / 0.5683 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002603/0.3339, allocations: 1.605 MB / 0.5698 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005425/0.3345, allocations: 254.4 kB / 0.5701 GB, free: 10.87 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001854/0.3347, allocations: 94 kB / 0.5702 GB, free: 10.76 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.912e-05/0.3347, allocations: 7.938 kB / 0.5702 GB, free: 10.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/0.3347, allocations: 46.5 kB / 0.5702 GB, free: 10.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.265e-06/0.3347, allocations: 0 / 0.5702 GB, free: 10.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007432/0.3355, allocations: 265.6 kB / 0.5705 GB, free: 10.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/0.3356, allocations: 213.6 kB / 0.5707 GB, free: 10.17 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00033/0.336, allocations: 280.5 kB / 0.5709 GB, free: 9.895 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.336, allocations: 25.7 kB / 0.571 GB, free: 9.863 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001897/0.3362, allocations: 252 kB / 0.5712 GB, free: 9.609 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.3363, allocations: 123 kB / 0.5713 GB, free: 9.488 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.3364, allocations: 102.3 kB / 0.5714 GB, free: 9.383 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.3366, allocations: 347.1 kB / 0.5717 GB, free: 9.035 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002265/0.3368, allocations: 97.27 kB / 0.5718 GB, free: 8.938 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004893/0.3373, allocations: 432.8 kB / 0.5723 GB, free: 8.359 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000754/0.3381, allocations: 0.5667 MB / 0.5728 GB, free: 7.633 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.902e-05/0.3381, allocations: 8.062 kB / 0.5728 GB, free: 7.625 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009193/0.339, allocations: 0.5322 MB / 0.5733 GB, free: 7.086 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.339, allocations: 8 kB / 0.5733 GB, free: 7.078 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.748e-05/0.3391, allocations: 12 kB / 0.5734 GB, free: 7.066 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.405e-05/0.3391, allocations: 16 kB / 0.5734 GB, free: 7.051 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004601/0.3396, allocations: 144.4 kB / 0.5735 GB, free: 6.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.689e-05/0.3396, allocations: 23.92 kB / 0.5735 GB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003203/0.3399, allocations: 71.61 kB / 0.5736 GB, free: 6.816 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.462e-05/0.3399, allocations: 35.94 kB / 0.5736 GB, free: 6.781 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.000217/0.3402, allocations: 177.5 kB / 0.5738 GB, free: 6.598 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/0.3403, allocations: 31.81 kB / 0.5738 GB, free: 6.566 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.209e-05/0.3404, allocations: 33.83 kB / 0.5739 GB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.3404, allocations: 7.938 kB / 0.5739 GB, free: 6.523 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.3404, allocations: 4 kB / 0.5739 GB, free: 6.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.3404, allocations: 3.984 kB / 0.5739 GB, free: 6.516 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.3418, allocations: 0.6115 MB / 0.5745 GB, free: 5.848 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3418, allocations: 0 / 0.5745 GB, free: 5.848 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004822/0.3423, allocations: 91.88 kB / 0.5746 GB, free: 5.758 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.105e-06/0.3423, allocations: 4 kB / 0.5746 GB, free: 5.754 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.331e-05/0.3423, allocations: 15.94 kB / 0.5746 GB, free: 5.738 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.3423, allocations: 0 / 0.5746 GB, free: 5.738 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.3423, allocations: 4 kB / 0.5746 GB, free: 5.734 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000857/0.3432, allocations: 0.8376 MB / 0.5754 GB, free: 4.863 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.62e-05/0.3433, allocations: 35.73 kB / 0.5754 GB, free: 4.828 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.137e-05/0.3433, allocations: 15.94 kB / 0.5755 GB, free: 4.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003517/0.3437, allocations: 4 kB / 0.5755 GB, free: 4.809 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.45e-05/0.3438, allocations: 32.02 kB / 0.5755 GB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/0.3438, allocations: 16 kB / 0.5755 GB, free: 4.762 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001946/0.344, allocations: 187.1 kB / 0.5757 GB, free: 4.578 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.344, allocations: 0 / 0.5757 GB, free: 4.578 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007784/0.3448, allocations: 95.89 kB / 0.5758 GB, free: 4.484 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.001167/0.3459, allocations: 1.383 MB / 0.5771 GB, free: 3.066 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006504/0.3466, allocations: 285.3 kB / 0.5774 GB, free: 2.789 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.3466, allocations: 0 / 0.5774 GB, free: 2.789 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001793/0.3468, allocations: 93.39 kB / 0.5775 GB, free: 2.699 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/0.3478, allocations: 75.72 kB / 0.5776 GB, free: 2.629 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006592/0.3544, allocations: 4.94 MB / 0.5824 GB, free: 13.25 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002491/0.3547, allocations: 202.4 kB / 0.5826 GB, free: 13.04 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001846/0.3549, allocations: 39.25 kB / 0.5826 GB, free: 13 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002259/0.3551, allocations: 119.4 kB / 0.5827 GB, free: 12.88 MB / 430.1 MB Notification: Performance of SimCode: time 1.233e-06/0.3551, allocations: 4 kB / 0.5827 GB, free: 12.88 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03257/0.3877, allocations: 7.136 MB / 0.5897 GB, free: 5.91 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.4, allocations: 8 kB / 0.5897 GB, free: 5.902 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.721507856971584]