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.0009885/0.0009886, allocations: 203.2 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 226.5 MB / 243.1 MB, free: 14.32 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007704/0.0007704, allocations: 89.31 kB / 295.1 MB, free: 10.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2013/0.2013, allocations: 44.83 MB / 392 MB, free: 9.367 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002494/0.0002494, allocations: 11.98 kB / 464.7 MB, free: 49.8 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09261/0.09288, allocations: 62.96 MB / 0.5153 GB, free: 2.805 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.002818/0.09574, allocations: 2.406 MB / 0.5177 GB, free: 388 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.1804/0.2762, allocations: 0.7045 MB / 0.5184 GB, free: 9.816 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003005/0.2765, allocations: 10.22 kB / 0.5184 GB, free: 9.816 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002002/0.2767, allocations: 46.41 kB / 0.5184 GB, free: 9.816 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000367/0.2771, allocations: 104.6 kB / 0.5185 GB, free: 9.793 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003741/0.2775, allocations: 72.84 kB / 0.5186 GB, free: 9.793 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00064/0.2781, allocations: 414.3 kB / 0.519 GB, free: 9.676 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002859/0.2784, allocations: 140 kB / 0.5191 GB, free: 9.652 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000339/0.2788, allocations: 142.9 kB / 0.5193 GB, free: 9.621 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003045/0.2791, allocations: 161.1 kB / 0.5194 GB, free: 9.582 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.187e-05/0.2791, allocations: 19.5 kB / 0.5194 GB, free: 9.582 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001049/0.2793, allocations: 24.48 kB / 0.5194 GB, free: 9.582 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.345e-05/0.2793, allocations: 57.69 kB / 0.5195 GB, free: 9.57 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.2794, allocations: 99.98 kB / 0.5196 GB, free: 9.523 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004057/0.2798, allocations: 327.4 kB / 0.5199 GB, free: 9.488 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2798, allocations: 0 / 0.5199 GB, free: 9.488 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2799, allocations: 4 kB / 0.5199 GB, free: 9.484 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.2799, allocations: 0.9062 kB / 0.5199 GB, free: 9.484 MB / 346.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.0008164/0.2807, allocations: 0.5995 MB / 0.5205 GB, free: 9.023 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.2807, allocations: 13.25 kB / 0.5205 GB, free: 9.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003267/0.2811, allocations: 77.5 kB / 0.5206 GB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.2814, allocations: 288.5 kB / 0.5209 GB, free: 8.754 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.2814, allocations: 28.81 kB / 0.5209 GB, free: 8.754 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.86e-05/0.2814, allocations: 41.64 kB / 0.5209 GB, free: 8.754 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006403/0.2821, allocations: 387.6 kB / 0.5213 GB, free: 8.676 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.2821, allocations: 6.297 kB / 0.5213 GB, free: 8.672 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.311e-05/0.2822, allocations: 17.34 kB / 0.5213 GB, free: 8.672 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/0.2822, allocations: 13.44 kB / 0.5213 GB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005159/0.2827, allocations: 256.5 kB / 0.5216 GB, free: 8.66 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00148/0.2842, allocations: 1.111 MB / 0.5227 GB, free: 8.145 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000495/0.2847, allocations: 359.5 kB / 0.523 GB, free: 8.055 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002731/0.285, allocations: 184.8 kB / 0.5232 GB, free: 8.023 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.068e-05/0.285, allocations: 4.641 kB / 0.5232 GB, free: 8.023 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/0.285, allocations: 44.44 kB / 0.5232 GB, free: 7.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 2.224e-06/0.285, allocations: 5.328 kB / 0.5232 GB, free: 7.977 MB / 346.7 MB Notification: Performance of matching and sorting (n=57): time 0.003404/0.2885, allocations: 2.471 MB / 0.5256 GB, free: 6.262 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.978e-05/0.2885, allocations: 108.9 kB / 0.5258 GB, free: 6.137 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.2887, allocations: 242.5 kB / 0.526 GB, free: 5.984 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.272e-05/0.2887, allocations: 31.83 kB / 0.526 GB, free: 5.949 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.341e-05/0.2888, allocations: 187.1 kB / 0.5262 GB, free: 5.793 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.2889, allocations: 195.2 kB / 0.5264 GB, free: 5.645 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.771e-05/0.289, allocations: 10.25 kB / 0.5264 GB, free: 5.637 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.26e-05/0.289, allocations: 351.2 kB / 0.5267 GB, free: 5.305 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002445/0.2893, allocations: 132.3 kB / 0.5268 GB, free: 5.266 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002819/0.2896, allocations: 237 kB / 0.5271 GB, free: 5.117 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002785/0.2899, allocations: 171.5 kB / 0.5272 GB, free: 5.043 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2899, allocations: 1.031 kB / 0.5272 GB, free: 5.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009108/0.2908, allocations: 0.569 MB / 0.5278 GB, free: 4.789 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.2908, allocations: 6.25 kB / 0.5278 GB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.2908, allocations: 3.312 kB / 0.5278 GB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003299/0.2912, allocations: 124.8 kB / 0.5279 GB, free: 4.738 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003679/0.2915, allocations: 99.27 kB / 0.528 GB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00281/0.2944, allocations: 4.674 MB / 0.5326 GB, free: 268 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002412/0.2946, allocations: 25.7 kB / 0.5326 GB, free: 256 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.078e-05/0.2947, allocations: 19.83 kB / 0.5326 GB, free: 252 kB / 346.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.000185/0.2949, allocations: 160.9 kB / 0.5328 GB, free: 100 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.212e-05/0.295, allocations: 43 kB / 0.5328 GB, free: 76 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.998e-05/0.295, allocations: 47.36 kB / 0.5329 GB, free: 40 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.295, allocations: 7.469 kB / 0.5329 GB, free: 40 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.691e-05/0.2951, allocations: 3.125 kB / 0.5329 GB, free: 40 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.2951, allocations: 8.25 kB / 0.5329 GB, free: 36 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002053/0.2971, allocations: 1.334 MB / 0.5342 GB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.2972, allocations: 3.375 kB / 0.5342 GB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003962/0.2976, allocations: 106.6 kB / 0.5343 GB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002762/0.2978, allocations: 95.16 kB / 0.5344 GB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.925e-05/0.2979, allocations: 13.58 kB / 0.5344 GB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002901/0.3008, allocations: 4.111 MB / 0.5384 GB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.3008, allocations: 2.875 kB / 0.5384 GB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.3021, allocations: 0.94 MB / 0.5393 GB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.128e-05/0.3022, allocations: 109.2 kB / 0.5394 GB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.737e-05/0.3022, allocations: 17.11 kB / 0.5394 GB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002555/0.3025, allocations: 24.22 kB / 0.5395 GB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.25e-05/0.3026, allocations: 47.17 kB / 0.5395 GB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.3026, allocations: 16.16 kB / 0.5395 GB, free: 10.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001555/0.3028, allocations: 169.9 kB / 0.5397 GB, free: 10.24 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3028, allocations: 0 / 0.5397 GB, free: 10.24 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006526/0.3035, allocations: 121.4 kB / 0.5398 GB, free: 10.22 MB / 362.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.0001273/0.3036, allocations: 107.1 kB / 0.5399 GB, free: 10.12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001242/0.3049, allocations: 0.7801 MB / 0.5407 GB, free: 9.629 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3049, allocations: 0 / 0.5407 GB, free: 9.629 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007738/0.3057, allocations: 0.5852 MB / 0.5412 GB, free: 9.211 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006315/0.3063, allocations: 56.25 kB / 0.5413 GB, free: 9.188 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001912/0.3082, allocations: 1.336 MB / 0.5426 GB, free: 8.242 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004692/0.3087, allocations: 0.8201 MB / 0.5434 GB, free: 7.535 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.3088, allocations: 32.5 kB / 0.5434 GB, free: 7.527 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.3088, allocations: 1.375 kB / 0.5434 GB, free: 7.527 MB / 362.7 MB Notification: Performance of Templates: time 0.01332/0.3221, allocations: 9.223 MB / 0.5524 GB, free: 3.812 MB / 362.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