Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009947/0.0009947, allocations: 200 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.585/1.585, allocations: 226.5 MB / 243.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008139/0.0008139, allocations: 102.6 kB / 295.5 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2938/0.2938, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002769/0.0002769, allocations: 4 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.287, allocations: 62.95 MB / 0.5159 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.001308/0.2884, allocations: 1.356 MB / 0.5172 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002091/0.2886, allocations: 102.5 kB / 0.5173 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.995e-05/0.2887, allocations: 2.938 kB / 0.5173 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.773e-05/0.2887, allocations: 10.16 kB / 0.5173 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 9.076e-05/0.2888, allocations: 34.09 kB / 0.5173 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.005e-05/0.2889, allocations: 14.36 kB / 0.5174 GB, free: 36.03 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001039/0.289, allocations: 125.2 kB / 0.5175 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.2891, allocations: 20.88 kB / 0.5175 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.402e-05/0.2892, allocations: 43.53 kB / 0.5175 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.15e-05/0.2893, allocations: 44.83 kB / 0.5176 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.559e-05/0.2893, allocations: 3.531 kB / 0.5176 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.894e-05/0.2893, allocations: 10.41 kB / 0.5176 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.814e-05/0.2893, allocations: 17.95 kB / 0.5176 GB, free: 35.9 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.884e-05/0.2894, allocations: 79.72 kB / 0.5177 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 8.436e-05/0.2895, allocations: 91.67 kB / 0.5178 GB, free: 35.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2895, allocations: 7.875 kB / 0.5178 GB, free: 35.81 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2895, allocations: 0 / 0.5178 GB, free: 35.81 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.2895, allocations: 0 / 0.5178 GB, free: 35.81 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003309/0.2898, allocations: 382.5 kB / 0.5181 GB, free: 35.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.2899, allocations: 9.531 kB / 0.5181 GB, free: 35.42 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.555e-05/0.2899, allocations: 18.03 kB / 0.5182 GB, free: 35.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.2901, allocations: 194.3 kB / 0.5184 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.2901, allocations: 7.672 kB / 0.5184 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.572e-05/0.2901, allocations: 12.56 kB / 0.5184 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.2903, allocations: 127.9 kB / 0.5185 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.2903, allocations: 8.109 kB / 0.5185 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.2903, allocations: 7.938 kB / 0.5185 GB, free: 35.1 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.2903, allocations: 3 kB / 0.5185 GB, free: 35.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.832e-05/0.2904, allocations: 57.72 kB / 0.5186 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005331/0.291, allocations: 0.5437 MB / 0.5191 GB, free: 34.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001026/0.2911, allocations: 85.97 kB / 0.5192 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.446e-05/0.2911, allocations: 30.53 kB / 0.5192 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.779e-06/0.2911, allocations: 6.844 kB / 0.5192 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.158e-05/0.2912, allocations: 34.5 kB / 0.5192 GB, free: 34.47 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.2912, allocations: 4 kB / 0.5193 GB, free: 34.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004556/0.2916, allocations: 301 kB / 0.5195 GB, free: 34.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.498e-05/0.2917, allocations: 77.11 kB / 0.5196 GB, free: 34.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.519e-05/0.2917, allocations: 119.9 kB / 0.5197 GB, free: 34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.325e-06/0.2917, allocations: 25.7 kB / 0.5198 GB, free: 33.97 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.915e-05/0.2918, allocations: 124.5 kB / 0.5199 GB, free: 33.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.076e-05/0.2918, allocations: 32.86 kB / 0.5199 GB, free: 33.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.838e-06/0.2918, allocations: 0 / 0.5199 GB, free: 33.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.289e-05/0.2919, allocations: 326.1 kB / 0.5202 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.255e-05/0.2919, allocations: 18.12 kB / 0.5202 GB, free: 33.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.375e-05/0.292, allocations: 99.92 kB / 0.5203 GB, free: 33.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.335e-05/0.2921, allocations: 121.2 kB / 0.5204 GB, free: 33.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2921, allocations: 0 / 0.5204 GB, free: 33.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002082/0.2923, allocations: 166.3 kB / 0.5206 GB, free: 33.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.2923, allocations: 9.219 kB / 0.5206 GB, free: 33.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.2923, allocations: 7.188 kB / 0.5206 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001674/0.2925, allocations: 38.72 kB / 0.5207 GB, free: 33.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.58e-05/0.2926, allocations: 32.8 kB / 0.5207 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/0.2937, allocations: 2.53 MB / 0.5232 GB, free: 30.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.949e-05/0.2937, allocations: 14.56 kB / 0.5232 GB, free: 30.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.2937, allocations: 5.625 kB / 0.5232 GB, free: 30.53 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.666e-05/0.2938, allocations: 130.4 kB / 0.5233 GB, free: 30.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.907e-05/0.2939, allocations: 10.66 kB / 0.5233 GB, free: 30.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.036e-05/0.2939, allocations: 10.62 kB / 0.5233 GB, free: 30.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.2939, allocations: 7.328 kB / 0.5233 GB, free: 30.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.2939, allocations: 2.75 kB / 0.5233 GB, free: 30.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.2939, allocations: 0 / 0.5233 GB, free: 30.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001822/0.2941, allocations: 196.6 kB / 0.5235 GB, free: 30.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2941, allocations: 0 / 0.5235 GB, free: 30.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.502e-05/0.2942, allocations: 18.94 kB / 0.5235 GB, free: 30.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.664e-05/0.2943, allocations: 35.69 kB / 0.5236 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.2943, allocations: 3 kB / 0.5236 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009659/0.2952, allocations: 2.537 MB / 0.526 GB, free: 27.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2953, allocations: 0 / 0.526 GB, free: 27.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002036/0.2955, allocations: 315 kB / 0.5263 GB, free: 27.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.962e-05/0.2955, allocations: 83.83 kB / 0.5264 GB, free: 27.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.2955, allocations: 7.234 kB / 0.5264 GB, free: 27.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.018e-05/0.2956, allocations: 3 kB / 0.5264 GB, free: 27.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.469e-05/0.2956, allocations: 9.922 kB / 0.5264 GB, free: 27.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.2956, allocations: 2.875 kB / 0.5264 GB, free: 27.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.045e-05/0.2957, allocations: 97.47 kB / 0.5265 GB, free: 27.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2957, allocations: 0 / 0.5265 GB, free: 27.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002948/0.296, allocations: 41.28 kB / 0.5266 GB, free: 27.05 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * 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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.155e-05/0.2961, allocations: 93.88 kB / 0.5267 GB, free: 26.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002985/0.2964, allocations: 294.8 kB / 0.527 GB, free: 26.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/0.2964, allocations: 4.125 kB / 0.527 GB, free: 26.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000176/0.2966, allocations: 257.7 kB / 0.5272 GB, free: 26.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003989/0.297, allocations: 32.11 kB / 0.5272 GB, free: 26.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006035/0.2976, allocations: 0.5828 MB / 0.5278 GB, free: 26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001222/0.2977, allocations: 0.7101 MB / 0.5285 GB, free: 25.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.845e-05/0.2978, allocations: 9.844 kB / 0.5285 GB, free: 25.3 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2978, allocations: 3.281 kB / 0.5285 GB, free: 25.3 MB / 378.7 MB Notification: Performance of Templates: time 0.003069/0.3008, allocations: 2.416 MB / 0.5309 GB, free: 25.12 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches