Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001225/0.001225, allocations: 113.1 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001291/0.001291, allocations: 208.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.255/1.255, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1924/0.1924, allocations: 46.11 MB / 345 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 79.86 kB / 482 MB, free: 4.125 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2792, allocations: 62.44 MB / 0.5316 GB, free: 13.66 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003499/0.2828, allocations: 2.855 MB / 0.5344 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.2839, allocations: 0.7677 MB / 0.5352 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.284, allocations: 7.281 kB / 0.5352 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.2842, allocations: 62.33 kB / 0.5353 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002098/0.2844, allocations: 130 kB / 0.5354 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002679/0.2847, allocations: 104.7 kB / 0.5355 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003474/0.285, allocations: 440.5 kB / 0.5359 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002131/0.2853, allocations: 146.1 kB / 0.536 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002195/0.2855, allocations: 176.5 kB / 0.5362 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001946/0.2857, allocations: 184.5 kB / 0.5364 GB, free: 9.949 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.323e-05/0.2857, allocations: 32.5 kB / 0.5364 GB, free: 9.949 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.914e-05/0.2858, allocations: 38.22 kB / 0.5364 GB, free: 9.945 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.623e-05/0.2859, allocations: 79 kB / 0.5365 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.286, allocations: 196.4 kB / 0.5367 GB, free: 9.754 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004017/0.2865, allocations: 443.5 kB / 0.5371 GB, free: 9.441 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.2865, allocations: 1.062 kB / 0.5371 GB, free: 9.441 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2865, allocations: 3.938 kB / 0.5371 GB, free: 9.438 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.633e-06/0.2865, allocations: 0 / 0.5371 GB, free: 9.438 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0008186/0.2873, allocations: 0.6529 MB / 0.5378 GB, free: 8.863 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.049e-05/0.2873, allocations: 9.156 kB / 0.5378 GB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002322/0.2876, allocations: 61.09 kB / 0.5378 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003082/0.2879, allocations: 278.8 kB / 0.5381 GB, free: 8.559 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.2879, allocations: 33.09 kB / 0.5381 GB, free: 8.539 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.131e-05/0.288, allocations: 45.28 kB / 0.5382 GB, free: 8.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005368/0.2885, allocations: 390.5 kB / 0.5386 GB, free: 8.246 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.266e-05/0.2886, allocations: 7.844 kB / 0.5386 GB, free: 8.242 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.041e-05/0.2886, allocations: 14.84 kB / 0.5386 GB, free: 8.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.2886, allocations: 10.41 kB / 0.5386 GB, free: 8.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003887/0.289, allocations: 220.1 kB / 0.5388 GB, free: 8.129 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001987/0.291, allocations: 1.726 MB / 0.5405 GB, free: 6.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003799/0.2914, allocations: 261.1 kB / 0.5407 GB, free: 6.336 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001384/0.2916, allocations: 94.86 kB / 0.5408 GB, free: 6.254 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.2916, allocations: 6.875 kB / 0.5408 GB, free: 6.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.2916, allocations: 42.88 kB / 0.5409 GB, free: 6.203 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.583e-06/0.2916, allocations: 0 / 0.5409 GB, free: 6.203 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0005984/0.2922, allocations: 269.4 kB / 0.5411 GB, free: 6.059 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.741e-05/0.2923, allocations: 209.8 kB / 0.5413 GB, free: 5.809 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000233/0.2926, allocations: 275.7 kB / 0.5416 GB, free: 5.613 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.2926, allocations: 31.11 kB / 0.5416 GB, free: 5.578 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.2927, allocations: 240.2 kB / 0.5418 GB, free: 5.359 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.573e-05/0.2928, allocations: 112.3 kB / 0.542 GB, free: 5.262 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.2929, allocations: 100.6 kB / 0.542 GB, free: 5.195 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.2931, allocations: 350.1 kB / 0.5424 GB, free: 4.852 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001913/0.2933, allocations: 99.75 kB / 0.5425 GB, free: 4.809 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003641/0.2936, allocations: 425.9 kB / 0.5429 GB, free: 4.312 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005866/0.2942, allocations: 0.577 MB / 0.5434 GB, free: 3.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.2942, allocations: 4.375 kB / 0.5435 GB, free: 3.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007611/0.295, allocations: 0.5227 MB / 0.544 GB, free: 3.445 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.295, allocations: 13.62 kB / 0.544 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.295, allocations: 16.53 kB / 0.544 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.562e-05/0.2951, allocations: 18.56 kB / 0.544 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003921/0.2955, allocations: 150.8 kB / 0.5442 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.018e-05/0.2955, allocations: 30.11 kB / 0.5442 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002703/0.2958, allocations: 63.28 kB / 0.5442 GB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.481e-05/0.2958, allocations: 31.28 kB / 0.5443 GB, free: 3.34 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001453/0.296, allocations: 180.2 kB / 0.5444 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/0.2961, allocations: 36.61 kB / 0.5445 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.839e-05/0.2962, allocations: 34.67 kB / 0.5445 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.2962, allocations: 4.219 kB / 0.5445 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.2962, allocations: 2.219 kB / 0.5445 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.2962, allocations: 6.406 kB / 0.5445 GB, free: 3.129 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001104/0.2973, allocations: 0.6477 MB / 0.5452 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.2973, allocations: 2.656 kB / 0.5452 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004057/0.2977, allocations: 87.88 kB / 0.5452 GB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.2978, allocations: 3.469 kB / 0.5452 GB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.375e-05/0.2978, allocations: 9.594 kB / 0.5453 GB, free: 2.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.234e-06/0.2978, allocations: 15.41 kB / 0.5453 GB, free: 2.527 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.2978, allocations: 2.5 kB / 0.5453 GB, free: 2.527 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006593/0.2985, allocations: 0.8354 MB / 0.5461 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.365e-05/0.2985, allocations: 106.8 kB / 0.5462 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.924e-05/0.2986, allocations: 9.344 kB / 0.5462 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003161/0.2989, allocations: 12.72 kB / 0.5462 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.022e-05/0.299, allocations: 27.06 kB / 0.5462 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.299, allocations: 7.125 kB / 0.5462 GB, free: 1.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001513/0.2991, allocations: 185 kB / 0.5464 GB, free: 1.531 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2991, allocations: 0 / 0.5464 GB, free: 1.531 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006649/0.2998, allocations: 102.1 kB / 0.5465 GB, free: 1.508 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001006/0.2999, allocations: 111.2 kB / 0.5466 GB, free: 1.402 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004549/0.3004, allocations: 305.4 kB / 0.5469 GB, free: 1.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3004, allocations: 0 / 0.5469 GB, free: 1.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001451/0.3005, allocations: 91.58 kB / 0.547 GB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008835/0.3014, allocations: 79 kB / 0.5471 GB, free: 1.133 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001892/0.3033, allocations: 1.563 MB / 0.5486 GB, free: 15.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.3037, allocations: 0.8065 MB / 0.5494 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.074e-05/0.3038, allocations: 31.44 kB / 0.5494 GB, free: 14.64 MB / 414.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3038, allocations: 0 / 0.5494 GB, free: 14.64 MB / 414.1 MB Notification: Performance of Templates: time 0.005359/0.3091, allocations: 4.184 MB / 0.5535 GB, free: 10.47 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches