Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.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.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_cpp_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_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001555/0.001555, allocations: 198.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 226.5 MB / 243.4 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007436/0.0007436, allocations: 98.94 kB / 295.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3002/0.3002, allocations: 44.83 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002526/0.0002527, allocations: 8 kB / 465.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2884, allocations: 62.95 MB / 0.5159 GB, free: 36.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.002247/0.2907, allocations: 2.411 MB / 0.5182 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009949/0.2917, allocations: 0.7254 MB / 0.5189 GB, free: 34.61 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001546/0.2919, allocations: 12.31 kB / 0.5189 GB, free: 34.61 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.292, allocations: 43.8 kB / 0.519 GB, free: 34.59 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001846/0.2922, allocations: 106.9 kB / 0.5191 GB, free: 34.51 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002515/0.2925, allocations: 72.06 kB / 0.5192 GB, free: 34.47 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003366/0.2928, allocations: 413.6 kB / 0.5195 GB, free: 34.26 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002654/0.2931, allocations: 158.2 kB / 0.5197 GB, free: 34.19 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002373/0.2934, allocations: 152.2 kB / 0.5198 GB, free: 34.12 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.2935, allocations: 165.7 kB / 0.52 GB, free: 34.04 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.473e-05/0.2936, allocations: 17.66 kB / 0.52 GB, free: 34.04 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.8e-05/0.2937, allocations: 23 kB / 0.52 GB, free: 34.04 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.655e-05/0.2937, allocations: 61.73 kB / 0.5201 GB, free: 34 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.2939, allocations: 202.3 kB / 0.5203 GB, free: 33.88 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002685/0.2941, allocations: 320.5 kB / 0.5206 GB, free: 33.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.2942, allocations: 0 / 0.5206 GB, free: 33.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2942, allocations: 0 / 0.5206 GB, free: 33.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.2942, allocations: 0 / 0.5206 GB, free: 33.8 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0008151/0.295, allocations: 0.6015 MB / 0.5212 GB, free: 33.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.2951, allocations: 12.16 kB / 0.5212 GB, free: 33.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000328/0.2954, allocations: 88.2 kB / 0.5213 GB, free: 33.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002845/0.2957, allocations: 285.5 kB / 0.5216 GB, free: 33.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.169e-05/0.2957, allocations: 28.06 kB / 0.5216 GB, free: 33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.178e-05/0.2958, allocations: 41.25 kB / 0.5216 GB, free: 32.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006107/0.2964, allocations: 393.3 kB / 0.522 GB, free: 32.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.453e-05/0.2964, allocations: 6.5 kB / 0.522 GB, free: 32.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.375e-05/0.2965, allocations: 14.44 kB / 0.522 GB, free: 32.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.2965, allocations: 10.84 kB / 0.522 GB, free: 32.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004656/0.297, allocations: 257.9 kB / 0.5223 GB, free: 32.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001412/0.2984, allocations: 1.117 MB / 0.5234 GB, free: 31.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004917/0.2989, allocations: 351.8 kB / 0.5237 GB, free: 31.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002627/0.2992, allocations: 180.7 kB / 0.5239 GB, free: 31.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.2992, allocations: 6.375 kB / 0.5239 GB, free: 31.72 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.2993, allocations: 37.97 kB / 0.5239 GB, free: 31.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=39): time 3.417e-06/0.2993, allocations: 2.688 kB / 0.5239 GB, free: 31.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.003114/0.3024, allocations: 2.478 MB / 0.5263 GB, free: 29.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.655e-05/0.3024, allocations: 112.6 kB / 0.5264 GB, free: 29.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.3026, allocations: 235.9 kB / 0.5267 GB, free: 29.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.3027, allocations: 36.64 kB / 0.5267 GB, free: 29.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.441e-05/0.3027, allocations: 182.3 kB / 0.5269 GB, free: 29.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.665e-05/0.3028, allocations: 196.5 kB / 0.5271 GB, free: 29.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.944e-05/0.3029, allocations: 14.56 kB / 0.5271 GB, free: 29.17 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.079e-05/0.3029, allocations: 351.3 kB / 0.5274 GB, free: 28.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002279/0.3032, allocations: 134.5 kB / 0.5275 GB, free: 28.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002539/0.3034, allocations: 234.6 kB / 0.5278 GB, free: 28.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004989/0.3039, allocations: 410.7 kB / 0.5282 GB, free: 28.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3039, allocations: 0 / 0.5282 GB, free: 28.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008181/0.3048, allocations: 0.5647 MB / 0.5287 GB, free: 28.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.3048, allocations: 5.656 kB / 0.5287 GB, free: 28.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.3048, allocations: 6.688 kB / 0.5287 GB, free: 28.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003212/0.3051, allocations: 120 kB / 0.5288 GB, free: 28.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003471/0.3055, allocations: 101.1 kB / 0.5289 GB, free: 28.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002701/0.3082, allocations: 4.682 MB / 0.5335 GB, free: 23.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/0.3084, allocations: 22.66 kB / 0.5335 GB, free: 23.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.682e-05/0.3085, allocations: 18.97 kB / 0.5335 GB, free: 23.6 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001631/0.3086, allocations: 171 kB / 0.5337 GB, free: 23.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.668e-05/0.3087, allocations: 39.69 kB / 0.5337 GB, free: 23.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.932e-05/0.3088, allocations: 47.17 kB / 0.5338 GB, free: 23.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3088, allocations: 9.656 kB / 0.5338 GB, free: 23.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.615e-05/0.3089, allocations: 2.906 kB / 0.5338 GB, free: 23.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.3089, allocations: 6.203 kB / 0.5338 GB, free: 23.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001597/0.3105, allocations: 1.347 MB / 0.5351 GB, free: 22.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/0.3105, allocations: 2.875 kB / 0.5351 GB, free: 22.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003599/0.3109, allocations: 98.62 kB / 0.5352 GB, free: 22.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002269/0.3111, allocations: 95.41 kB / 0.5353 GB, free: 22.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.711e-05/0.3111, allocations: 13.81 kB / 0.5353 GB, free: 22.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001996/0.3131, allocations: 4.108 MB / 0.5393 GB, free: 18.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3131, allocations: 3.062 kB / 0.5393 GB, free: 18.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.3142, allocations: 0.9417 MB / 0.5403 GB, free: 17.83 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.964e-05/0.3143, allocations: 109.1 kB / 0.5404 GB, free: 17.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.817e-05/0.3143, allocations: 16.69 kB / 0.5404 GB, free: 17.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002328/0.3146, allocations: 16.25 kB / 0.5404 GB, free: 17.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.096e-05/0.3146, allocations: 45.81 kB / 0.5404 GB, free: 17.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-05/0.3147, allocations: 15.72 kB / 0.5405 GB, free: 17.69 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001137/0.3148, allocations: 169.1 kB / 0.5406 GB, free: 17.58 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3148, allocations: 0 / 0.5406 GB, free: 17.58 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006465/0.3155, allocations: 122.8 kB / 0.5407 GB, free: 17.56 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001211/0.3156, allocations: 125.6 kB / 0.5408 GB, free: 17.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009861/0.3166, allocations: 0.7734 MB / 0.5416 GB, free: 16.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3166, allocations: 0 / 0.5416 GB, free: 16.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005778/0.3172, allocations: 0.5813 MB / 0.5422 GB, free: 16.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000639/0.3178, allocations: 59.44 kB / 0.5422 GB, free: 16.51 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001406/0.3192, allocations: 1.331 MB / 0.5435 GB, free: 15.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002213/0.3195, allocations: 0.8186 MB / 0.5443 GB, free: 14.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.353e-05/0.3196, allocations: 38.34 kB / 0.5444 GB, free: 14.86 MB / 378.7 MB Notification: Performance of SimCode: time 1.202e-06/0.3196, allocations: 0 / 0.5444 GB, free: 14.86 MB / 378.7 MB Notification: Performance of Templates: time 0.01223/0.3318, allocations: 9.203 MB / 0.5534 GB, free: 13.08 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches