Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001606/0.001606, allocations: 109.4 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002029/0.002029, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.798/1.798, allocations: 227.4 MB / 247.1 MB, free: 10.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2302/0.2302, allocations: 46.1 MB / 344.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002714/0.002714, allocations: 77.41 kB / 417.7 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1731/0.1759, allocations: 62.43 MB / 480.1 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.007264/0.1832, allocations: 2.906 MB / 483 MB, free: 2.727 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002467/0.1858, allocations: 0.7868 MB / 483.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003979/0.1862, allocations: 15.88 kB / 483.8 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003562/0.1866, allocations: 39.64 kB / 483.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006025/0.1873, allocations: 111.1 kB / 484 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006211/0.1879, allocations: 103.8 kB / 484.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007942/0.1887, allocations: 450.4 kB / 484.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005036/0.1892, allocations: 182.1 kB / 484.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004212/0.1897, allocations: 175.3 kB / 484.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003543/0.1901, allocations: 187.1 kB / 485.1 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.589e-05/0.1901, allocations: 36 kB / 485.1 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001577/0.1903, allocations: 43.98 kB / 485.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.1905, allocations: 79.7 kB / 485.2 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002849/0.1908, allocations: 207 kB / 485.4 MB, free: 340 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005935/0.1914, allocations: 347.4 kB / 485.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1914, allocations: 0 / 485.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1914, allocations: 0 / 485.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.1914, allocations: 4 kB / 485.8 MB, free: 15.98 MB / 366.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.001551/0.193, allocations: 0.6784 MB / 486.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.479e-05/0.1931, allocations: 12.03 kB / 486.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005949/0.1937, allocations: 64.44 kB / 486.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005006/0.1942, allocations: 303.5 kB / 486.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.607e-05/0.1943, allocations: 25.38 kB / 486.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.1944, allocations: 40.38 kB / 486.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.1955, allocations: 389.3 kB / 487.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.184e-05/0.1955, allocations: 3.906 kB / 487.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.343e-05/0.1956, allocations: 16 kB / 487.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.1956, allocations: 8 kB / 487.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008088/0.1964, allocations: 252.3 kB / 487.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002378/0.1988, allocations: 1.101 MB / 488.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009063/0.1998, allocations: 355.5 kB / 489 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004709/0.2002, allocations: 170.5 kB / 489.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.128e-05/0.2003, allocations: 7.984 kB / 489.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.087e-05/0.2004, allocations: 42.5 kB / 489.2 MB, free: 12.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 4.589e-06/0.2004, allocations: 0 / 489.2 MB, free: 12.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=57): time 0.006389/0.2068, allocations: 2.454 MB / 491.7 MB, free: 9.633 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.087e-05/0.2069, allocations: 114.8 kB / 491.8 MB, free: 9.496 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004007/0.2073, allocations: 238.7 kB / 492 MB, free: 9.254 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.466e-05/0.2074, allocations: 41.69 kB / 492 MB, free: 9.207 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001715/0.2076, allocations: 184.6 kB / 492.2 MB, free: 9.023 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002482/0.2079, allocations: 209 kB / 492.4 MB, free: 8.816 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000211/0.2081, allocations: 86.25 kB / 492.5 MB, free: 8.727 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001851/0.2083, allocations: 350.7 kB / 492.9 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005092/0.2088, allocations: 129 kB / 493 MB, free: 8.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006174/0.2095, allocations: 231.8 kB / 493.2 MB, free: 7.988 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/0.2107, allocations: 401.9 kB / 493.6 MB, free: 7.559 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.2107, allocations: 0 / 493.6 MB, free: 7.559 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00197/0.2127, allocations: 0.5499 MB / 494.1 MB, free: 6.992 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.122e-05/0.2128, allocations: 11.98 kB / 494.2 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.2128, allocations: 0 / 494.2 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006703/0.2135, allocations: 122.5 kB / 494.3 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007554/0.2143, allocations: 99.97 kB / 494.4 MB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006973/0.2212, allocations: 5.21 MB / 499.6 MB, free: 1.133 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005252/0.2218, allocations: 20.05 kB / 499.6 MB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.984e-05/0.2219, allocations: 24 kB / 499.6 MB, free: 1.09 MB / 366.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.0003732/0.2223, allocations: 165.8 kB / 499.8 MB, free: 0.918 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001887/0.2225, allocations: 31.62 kB / 499.8 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001353/0.2227, allocations: 50.17 kB / 499.9 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.49e-05/0.2227, allocations: 8 kB / 499.9 MB, free: 0.832 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.407e-05/0.2227, allocations: 7.938 kB / 499.9 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.2228, allocations: 11.92 kB / 499.9 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003821/0.2266, allocations: 1.337 MB / 0.4895 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.2266, allocations: 0 / 0.4895 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008722/0.2275, allocations: 96.08 kB / 0.4896 GB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005515/0.2281, allocations: 98.45 kB / 0.4897 GB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.737e-05/0.2282, allocations: 19.92 kB / 0.4897 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005349/0.2335, allocations: 4.431 MB / 0.494 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.829e-06/0.2336, allocations: 8.031 kB / 0.494 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002442/0.2361, allocations: 0.9193 MB / 0.4949 GB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001791/0.2363, allocations: 104.6 kB / 0.495 GB, free: 9.238 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.993e-05/0.2364, allocations: 16.06 kB / 0.495 GB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005254/0.2369, allocations: 19.98 kB / 0.4951 GB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.2371, allocations: 47.88 kB / 0.4951 GB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-05/0.2372, allocations: 16 kB / 0.4951 GB, free: 9.141 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000299/0.2375, allocations: 174 kB / 0.4953 GB, free: 8.969 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.2375, allocations: 0 / 0.4953 GB, free: 8.969 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001317/0.2388, allocations: 120 kB / 0.4954 GB, free: 8.852 MB / 382.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.000237/0.2391, allocations: 123 kB / 0.4955 GB, free: 8.723 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002394/0.2415, allocations: 0.7892 MB / 0.4963 GB, free: 7.895 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/0.2415, allocations: 0 / 0.4963 GB, free: 7.895 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001402/0.243, allocations: 0.5804 MB / 0.4969 GB, free: 7.277 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.2443, allocations: 64.7 kB / 0.4969 GB, free: 7.215 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003516/0.2478, allocations: 1.297 MB / 0.4982 GB, free: 5.871 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005876/0.2485, allocations: 0.8163 MB / 0.499 GB, free: 5.023 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000146/0.2486, allocations: 31.44 kB / 0.499 GB, free: 4.996 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.2486, allocations: 0 / 0.499 GB, free: 4.996 MB / 382.1 MB Notification: Performance of Templates: time 0.3183/0.5669, allocations: 9.425 MB / 0.5082 GB, free: 40.2 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches