Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008618/0.0008618, allocations: 193.3 kB / 7.808 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.084/1.084, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008245/0.0008245, allocations: 91.06 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1628/0.1628, allocations: 43.48 MB / 352.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.116e-06/3.206e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2531, allocations: 58.83 MB / 476.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1024/0.3555, allocations: 86.15 MB / 0.5495 GB, free: 12.79 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000165/0.3557, allocations: 63.97 kB / 0.5496 GB, free: 12.73 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01515/0.3708, allocations: 5.733 MB / 0.5552 GB, free: 6.984 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.3709, allocations: 4 kB / 0.5552 GB, free: 6.98 MB / 394.7 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.0006915/0.3716, allocations: 0.561 MB / 0.5557 GB, free: 6.375 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.759e-05/0.3716, allocations: 8.031 kB / 0.5557 GB, free: 6.367 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.979e-05/0.3717, allocations: 39.53 kB / 0.5558 GB, free: 6.328 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002731/0.372, allocations: 259.3 kB / 0.556 GB, free: 6.031 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.372, allocations: 12 kB / 0.556 GB, free: 6.02 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.737e-05/0.372, allocations: 27.91 kB / 0.5561 GB, free: 5.992 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002919/0.3723, allocations: 165.5 kB / 0.5562 GB, free: 5.828 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004224/0.3728, allocations: 321.8 kB / 0.5565 GB, free: 5.48 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.3728, allocations: 3.938 kB / 0.5565 GB, free: 5.477 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.409e-05/0.3728, allocations: 7.906 kB / 0.5565 GB, free: 5.469 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.649e-05/0.3728, allocations: 8 kB / 0.5565 GB, free: 5.461 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001857/0.3747, allocations: 1.657 MB / 0.5582 GB, free: 3.707 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002575/0.375, allocations: 199 kB / 0.5583 GB, free: 3.461 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.824e-05/0.3751, allocations: 74.42 kB / 0.5584 GB, free: 3.367 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.3751, allocations: 8 kB / 0.5584 GB, free: 3.359 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.3751, allocations: 54.42 kB / 0.5585 GB, free: 3.297 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 1.343e-06/0.3751, allocations: 0 / 0.5585 GB, free: 3.297 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003939/0.3755, allocations: 169.1 kB / 0.5586 GB, free: 3.125 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.162e-05/0.3756, allocations: 209.7 kB / 0.5588 GB, free: 2.871 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/0.3758, allocations: 212.9 kB / 0.559 GB, free: 2.652 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.3758, allocations: 25.7 kB / 0.5591 GB, free: 2.621 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.3759, allocations: 227.1 kB / 0.5593 GB, free: 2.395 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.632e-05/0.376, allocations: 113.4 kB / 0.5594 GB, free: 2.285 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.065e-05/0.376, allocations: 4 kB / 0.5594 GB, free: 2.281 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.3761, allocations: 338.8 kB / 0.5597 GB, free: 1.941 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.3763, allocations: 73.31 kB / 0.5598 GB, free: 1.867 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002938/0.3766, allocations: 403.5 kB / 0.5602 GB, free: 1.312 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.3768, allocations: 139.9 kB / 0.5603 GB, free: 1.176 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.3768, allocations: 4 kB / 0.5603 GB, free: 1.172 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006039/0.3774, allocations: 429.6 kB / 0.5607 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.003e-05/0.3774, allocations: 6.812 kB / 0.5607 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.3774, allocations: 12 kB / 0.5607 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.3774, allocations: 20 kB / 0.5608 GB, free: 0.7109 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004353/0.3779, allocations: 147.7 kB / 0.5609 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.605e-05/0.3779, allocations: 23.92 kB / 0.5609 GB, free: 0.543 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002632/0.3782, allocations: 59.5 kB / 0.561 GB, free: 496 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.171e-05/0.3782, allocations: 35.98 kB / 0.561 GB, free: 460 kB / 394.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.523e-05/0.3783, allocations: 130.1 kB / 0.5611 GB, free: 324 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.3785, allocations: 27.62 kB / 0.5612 GB, free: 296 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.692e-05/0.3785, allocations: 33.7 kB / 0.5612 GB, free: 264 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3785, allocations: 4 kB / 0.5612 GB, free: 260 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3785, allocations: 0 / 0.5612 GB, free: 260 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.3786, allocations: 4 kB / 0.5612 GB, free: 256 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.3796, allocations: 0.5856 MB / 0.5618 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.3796, allocations: 4 kB / 0.5618 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004476/0.38, allocations: 95.88 kB / 0.5619 GB, free: 15.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.38, allocations: 4.25 kB / 0.5619 GB, free: 15.51 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.13e-05/0.3801, allocations: 12.06 kB / 0.5619 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.3801, allocations: 8 kB / 0.5619 GB, free: 15.49 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3801, allocations: 7.844 kB / 0.5619 GB, free: 15.48 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005004/0.3806, allocations: 0.8695 MB / 0.5627 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.968e-05/0.3807, allocations: 104.7 kB / 0.5628 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.271e-05/0.3807, allocations: 12 kB / 0.5629 GB, free: 14.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003694/0.3811, allocations: 7.984 kB / 0.5629 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.827e-05/0.3811, allocations: 15.89 kB / 0.5629 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.3812, allocations: 19.98 kB / 0.5629 GB, free: 14.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001045/0.3813, allocations: 157.2 kB / 0.563 GB, free: 14.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006164/0.3819, allocations: 91.72 kB / 0.5631 GB, free: 14.12 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.097e-05/0.382, allocations: 99.19 kB / 0.5632 GB, free: 14.01 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002968/0.3823, allocations: 233.2 kB / 0.5635 GB, free: 13.79 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3823, allocations: 3.938 kB / 0.5635 GB, free: 13.78 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.904e-05/0.3824, allocations: 75.86 kB / 0.5635 GB, free: 13.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005388/0.3829, allocations: 58.25 kB / 0.5636 GB, free: 13.66 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.3846, allocations: 1.433 MB / 0.565 GB, free: 12.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003709/0.385, allocations: 0.8377 MB / 0.5658 GB, free: 11.31 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/0.385, allocations: 0 / 0.5658 GB, free: 11.31 MB / 410.7 MB Notification: Performance of Templates: time 0.005391/0.3904, allocations: 2.876 MB / 0.5686 GB, free: 8.445 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches