Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.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.008678/0.008678, allocations: 106.4 kB / 21.98 MB, free: 5.223 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.002042/0.002042, allocations: 215.9 kB / 25.29 MB, free: 3.203 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.44/1.44, allocations: 230.5 MB / 258.9 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.229/0.229, allocations: 46.93 MB / 362.3 MB, free: 4.176 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002307/0.002307, allocations: 83.86 kB / 0.4982 GB, free: 7.238 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3021, allocations: 66.08 MB / 0.5627 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.004372/0.3064, allocations: 2.878 MB / 0.5655 GB, free: 1.332 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001439/0.3079, allocations: 0.8101 MB / 0.5663 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.308, allocations: 15.88 kB / 0.5663 GB, free: 0.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001939/0.3082, allocations: 63.33 kB / 0.5664 GB, free: 448 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002336/0.3084, allocations: 126.8 kB / 0.5665 GB, free: 320 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003372/0.3088, allocations: 123.8 kB / 0.5666 GB, free: 196 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005262/0.3093, allocations: 450.4 kB / 0.5671 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002764/0.3096, allocations: 142.7 kB / 0.5672 GB, free: 15.6 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000279/0.3099, allocations: 183.4 kB / 0.5674 GB, free: 15.42 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002652/0.3101, allocations: 187.2 kB / 0.5676 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.377e-05/0.3102, allocations: 39.94 kB / 0.5676 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.08e-05/0.3103, allocations: 40 kB / 0.5676 GB, free: 15.16 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.888e-05/0.3104, allocations: 83.69 kB / 0.5677 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001871/0.3105, allocations: 206.9 kB / 0.5679 GB, free: 14.88 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005078/0.3111, allocations: 456.4 kB / 0.5684 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.3111, allocations: 4 kB / 0.5684 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3111, allocations: 7.938 kB / 0.5684 GB, free: 14.42 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.3111, allocations: 0 / 0.5684 GB, free: 14.42 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001003/0.3121, allocations: 0.6028 MB / 0.569 GB, free: 13.79 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.3121, allocations: 12.03 kB / 0.569 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003364/0.3124, allocations: 72.62 kB / 0.569 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004121/0.3129, allocations: 241.5 kB / 0.5693 GB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.3129, allocations: 29.38 kB / 0.5693 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.739e-05/0.3129, allocations: 40.38 kB / 0.5693 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006931/0.3136, allocations: 385.3 kB / 0.5697 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.262e-05/0.3137, allocations: 7.953 kB / 0.5697 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.3e-05/0.3137, allocations: 16 kB / 0.5697 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.3137, allocations: 8 kB / 0.5697 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005422/0.3142, allocations: 247.8 kB / 0.57 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.3159, allocations: 1.059 MB / 0.571 GB, free: 11.59 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005827/0.3165, allocations: 327.4 kB / 0.5713 GB, free: 11.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00031/0.3168, allocations: 158.5 kB / 0.5715 GB, free: 11.08 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.319e-05/0.3169, allocations: 8 kB / 0.5715 GB, free: 11.07 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.407e-05/0.3169, allocations: 42.5 kB / 0.5715 GB, free: 11.02 MB / 414.1 MB Notification: Performance of pre-optimization done (n=39): time 1.693e-06/0.3169, allocations: 0 / 0.5715 GB, free: 11.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=57): time 0.003929/0.3208, allocations: 2.013 MB / 0.5735 GB, free: 8.855 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.937e-05/0.3209, allocations: 106.8 kB / 0.5736 GB, free: 8.727 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002687/0.3212, allocations: 245.9 kB / 0.5738 GB, free: 8.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.202e-05/0.3212, allocations: 37.7 kB / 0.5738 GB, free: 8.438 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.3213, allocations: 188.9 kB / 0.574 GB, free: 8.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.3215, allocations: 202.2 kB / 0.5742 GB, free: 8.051 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001339/0.3216, allocations: 90.34 kB / 0.5743 GB, free: 7.957 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.3218, allocations: 350.7 kB / 0.5746 GB, free: 7.605 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002847/0.3221, allocations: 129.2 kB / 0.5748 GB, free: 7.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003578/0.3224, allocations: 236.7 kB / 0.575 GB, free: 7.211 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006778/0.3231, allocations: 394 kB / 0.5754 GB, free: 6.789 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3231, allocations: 11.88 kB / 0.5754 GB, free: 6.777 MB / 414.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00106/0.3242, allocations: 0.5578 MB / 0.5759 GB, free: 6.203 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.3242, allocations: 4 kB / 0.5759 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.3242, allocations: 4 kB / 0.5759 GB, free: 6.195 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003818/0.3246, allocations: 130.5 kB / 0.5761 GB, free: 6.059 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003859/0.325, allocations: 91.89 kB / 0.5761 GB, free: 5.969 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004707/0.3297, allocations: 4.912 MB / 0.5809 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002502/0.3299, allocations: 20.02 kB / 0.581 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.091e-05/0.33, allocations: 20 kB / 0.581 GB, free: 0.6797 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002228/0.3302, allocations: 169.8 kB / 0.5811 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.3303, allocations: 39.77 kB / 0.5812 GB, free: 476 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.57e-05/0.3304, allocations: 46.11 kB / 0.5812 GB, free: 428 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.3304, allocations: 8 kB / 0.5812 GB, free: 420 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.451e-05/0.3304, allocations: 7.938 kB / 0.5812 GB, free: 412 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3304, allocations: 3.984 kB / 0.5812 GB, free: 408 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002139/0.3326, allocations: 1.289 MB / 0.5825 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.3326, allocations: 4 kB / 0.5825 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000406/0.333, allocations: 91.89 kB / 0.5826 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002802/0.3333, allocations: 94.45 kB / 0.5827 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.782e-05/0.3333, allocations: 19.92 kB / 0.5827 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003604/0.3369, allocations: 4.122 MB / 0.5867 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.3369, allocations: 7.969 kB / 0.5867 GB, free: 10.35 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.3383, allocations: 0.9182 MB / 0.5876 GB, free: 9.398 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.198e-05/0.3384, allocations: 35.69 kB / 0.5877 GB, free: 9.363 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.271e-05/0.3384, allocations: 12.06 kB / 0.5877 GB, free: 9.352 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002598/0.3387, allocations: 19.98 kB / 0.5877 GB, free: 9.332 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.645e-05/0.3388, allocations: 43.86 kB / 0.5877 GB, free: 9.289 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.724e-05/0.3388, allocations: 20 kB / 0.5878 GB, free: 9.27 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001831/0.339, allocations: 181.2 kB / 0.5879 GB, free: 9.09 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.339, allocations: 0 / 0.5879 GB, free: 9.09 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007061/0.3397, allocations: 120 kB / 0.588 GB, free: 8.973 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.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 (48): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001351/0.3398, allocations: 115.3 kB / 0.5882 GB, free: 8.852 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001324/0.3411, allocations: 0.757 MB / 0.5889 GB, free: 8.059 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.3412, allocations: 4 kB / 0.5889 GB, free: 8.055 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008324/0.342, allocations: 0.5647 MB / 0.5894 GB, free: 7.453 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006064/0.3426, allocations: 55.92 kB / 0.5895 GB, free: 7.402 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001876/0.3445, allocations: 1.133 MB / 0.5906 GB, free: 6.219 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004863/0.345, allocations: 0.8241 MB / 0.5914 GB, free: 5.367 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.469e-05/0.345, allocations: 35.42 kB / 0.5914 GB, free: 5.332 MB / 430.1 MB Notification: Performance of SimCode: time 4.21e-07/0.345, allocations: 0 / 0.5914 GB, free: 5.332 MB / 430.1 MB Notification: Performance of Templates: time 0.01253/0.3576, allocations: 9.506 MB / 0.6007 GB, free: 11.82 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.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: 8.715168532915413]