Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_trunk_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_ModelicaTest.Rotational.ForUsersGuide.Directions3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001606/0.001605, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001489/0.001489, allocations: 208.7 kB / 18.74 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2447/0.2447, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 75.88 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3699/0.3712, allocations: 62.45 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.002816/0.3741, allocations: 1.663 MB / 0.5326 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002591/0.3744, allocations: 105.2 kB / 0.5327 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.896e-05/0.3744, allocations: 6.688 kB / 0.5327 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.779e-05/0.3745, allocations: 17.17 kB / 0.5327 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001096/0.3746, allocations: 39.83 kB / 0.5328 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001383/0.3748, allocations: 22.72 kB / 0.5328 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001534/0.3749, allocations: 138.2 kB / 0.5329 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.3751, allocations: 25.62 kB / 0.5329 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.769e-05/0.3752, allocations: 53.78 kB / 0.533 GB, free: 12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.602e-05/0.3753, allocations: 56.27 kB / 0.533 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.114e-05/0.3753, allocations: 8.25 kB / 0.5331 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.444e-05/0.3753, allocations: 9.625 kB / 0.5331 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.947e-05/0.3754, allocations: 24 kB / 0.5331 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.267e-05/0.3754, allocations: 56.36 kB / 0.5331 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000176/0.3756, allocations: 125.8 kB / 0.5333 GB, free: 11.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3756, allocations: 1.375 kB / 0.5333 GB, free: 11.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3756, allocations: 0 / 0.5333 GB, free: 11.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.3756, allocations: 0 / 0.5333 GB, free: 11.82 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005242/0.3762, allocations: 406.4 kB / 0.5336 GB, free: 11.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.3762, allocations: 9.281 kB / 0.5337 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.99e-05/0.3763, allocations: 14.03 kB / 0.5337 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001741/0.3764, allocations: 189.9 kB / 0.5339 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.3765, allocations: 9.047 kB / 0.5339 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.946e-05/0.3765, allocations: 16.31 kB / 0.5339 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002315/0.3768, allocations: 138.9 kB / 0.534 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.3768, allocations: 9.172 kB / 0.534 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.3768, allocations: 13.09 kB / 0.534 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.3768, allocations: 3.344 kB / 0.534 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001071/0.3769, allocations: 58.41 kB / 0.5341 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007559/0.3777, allocations: 0.5424 MB / 0.5346 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00015/0.3779, allocations: 84.14 kB / 0.5347 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.251e-05/0.3779, allocations: 35.39 kB / 0.5347 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.556e-05/0.3779, allocations: 5.031 kB / 0.5347 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/0.378, allocations: 32.75 kB / 0.5348 GB, free: 10.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.243e-06/0.378, allocations: 3.938 kB / 0.5348 GB, free: 10.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006538/0.3786, allocations: 302.5 kB / 0.5351 GB, free: 10.06 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.3787, allocations: 78.23 kB / 0.5351 GB, free: 9.969 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.3788, allocations: 125.1 kB / 0.5353 GB, free: 9.852 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.84e-05/0.3789, allocations: 26.98 kB / 0.5353 GB, free: 9.82 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.974e-05/0.3789, allocations: 117.3 kB / 0.5354 GB, free: 9.707 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.201e-05/0.379, allocations: 31.11 kB / 0.5354 GB, free: 9.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.042e-05/0.379, allocations: 38.7 kB / 0.5355 GB, free: 9.645 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3792, allocations: 321.1 kB / 0.5358 GB, free: 9.324 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.4e-05/0.3792, allocations: 24.61 kB / 0.5358 GB, free: 9.312 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.726e-05/0.3794, allocations: 86.8 kB / 0.5359 GB, free: 9.215 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.3795, allocations: 125.9 kB / 0.536 GB, free: 9.094 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.3795, allocations: 0 / 0.536 GB, free: 9.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002936/0.3798, allocations: 162.7 kB / 0.5361 GB, free: 8.988 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.3799, allocations: 9.484 kB / 0.5362 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.3799, allocations: 2.75 kB / 0.5362 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002084/0.3801, allocations: 42.48 kB / 0.5362 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.3802, allocations: 29.8 kB / 0.5362 GB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002289/0.3825, allocations: 2.727 MB / 0.5389 GB, free: 6.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.943e-05/0.3826, allocations: 16.12 kB / 0.5389 GB, free: 6.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.3826, allocations: 9.438 kB / 0.5389 GB, free: 6.066 MB / 398.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001246/0.3828, allocations: 124.4 kB / 0.539 GB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.847e-05/0.3828, allocations: 12.53 kB / 0.539 GB, free: 5.934 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.187e-05/0.3828, allocations: 16.95 kB / 0.5391 GB, free: 5.914 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.3829, allocations: 1.125 kB / 0.5391 GB, free: 5.914 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3829, allocations: 2.5 kB / 0.5391 GB, free: 5.914 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.3829, allocations: 0 / 0.5391 GB, free: 5.914 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000276/0.3832, allocations: 196 kB / 0.5393 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.3832, allocations: 0 / 0.5393 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.357e-05/0.3833, allocations: 19.86 kB / 0.5393 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.524e-05/0.3834, allocations: 35.64 kB / 0.5393 GB, free: 5.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.3834, allocations: 10.06 kB / 0.5393 GB, free: 5.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001693/0.3851, allocations: 2.734 MB / 0.542 GB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3851, allocations: 3.938 kB / 0.542 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002787/0.3854, allocations: 303.8 kB / 0.5423 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.079e-05/0.3854, allocations: 87.34 kB / 0.5424 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.3854, allocations: 1.188 kB / 0.5424 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.998e-05/0.3855, allocations: 9.188 kB / 0.5424 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.929e-05/0.3856, allocations: 12.58 kB / 0.5424 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.3856, allocations: 1.219 kB / 0.5424 GB, free: 2.391 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.636e-05/0.3857, allocations: 97.61 kB / 0.5425 GB, free: 2.305 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3857, allocations: 0 / 0.5425 GB, free: 2.305 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003584/0.3861, allocations: 32.53 kB / 0.5425 GB, free: 2.301 MB / 398.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001452/0.3862, allocations: 99.72 kB / 0.5426 GB, free: 2.207 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005061/0.3867, allocations: 306.6 kB / 0.5429 GB, free: 1.938 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3867, allocations: 0 / 0.5429 GB, free: 1.938 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002707/0.387, allocations: 263.3 kB / 0.5431 GB, free: 1.688 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005396/0.3876, allocations: 31.48 kB / 0.5432 GB, free: 1.668 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007582/0.3883, allocations: 466.8 kB / 0.5436 GB, free: 1.285 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.3886, allocations: 0.7116 MB / 0.5443 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.334e-05/0.3886, allocations: 3.859 kB / 0.5443 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.141e-05/0.3887, allocations: 12.06 kB / 0.5443 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3887, allocations: 0 / 0.5443 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of Templates: time 0.004096/0.3928, allocations: 1.531 MB / 0.5458 GB, free: 15.8 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches