Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 113.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001161/0.001162, allocations: 179.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2214/0.2214, allocations: 44.2 MB / 336.8 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 59.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3783/0.3795, allocations: 60.82 MB / 0.5189 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.00345/0.383, allocations: 2.846 MB / 0.5217 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.384, allocations: 0.7166 MB / 0.5224 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001542/0.3842, allocations: 7.719 kB / 0.5224 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001879/0.3844, allocations: 60.72 kB / 0.5224 GB, free: 1.023 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002004/0.3846, allocations: 126.6 kB / 0.5225 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002519/0.3848, allocations: 93.67 kB / 0.5226 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003898/0.3852, allocations: 445.2 kB / 0.5231 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002816/0.3855, allocations: 184.9 kB / 0.5232 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001962/0.3857, allocations: 171.5 kB / 0.5234 GB, free: 492 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002328/0.386, allocations: 191.3 kB / 0.5236 GB, free: 392 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.782e-05/0.386, allocations: 39.94 kB / 0.5236 GB, free: 388 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.648e-05/0.3861, allocations: 34.22 kB / 0.5237 GB, free: 388 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.159e-05/0.3862, allocations: 80.81 kB / 0.5237 GB, free: 332 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00018/0.3864, allocations: 200.1 kB / 0.5239 GB, free: 212 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004853/0.3869, allocations: 455.7 kB / 0.5244 GB, free: 24 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3869, allocations: 4 kB / 0.5244 GB, free: 20 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3869, allocations: 4.641 kB / 0.5244 GB, free: 16 kB / 382.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.3869, allocations: 0 / 0.5244 GB, free: 16 kB / 382.1 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.00099/0.3879, allocations: 0.6676 MB / 0.525 GB, free: 15.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.3879, allocations: 9.828 kB / 0.525 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.853e-05/0.388, allocations: 46.97 kB / 0.5251 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003637/0.3884, allocations: 294.6 kB / 0.5254 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.3884, allocations: 28.34 kB / 0.5254 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.741e-05/0.3885, allocations: 43.12 kB / 0.5254 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006953/0.3892, allocations: 387.6 kB / 0.5258 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.3893, allocations: 2.328 kB / 0.5258 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.3893, allocations: 19.59 kB / 0.5258 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.3893, allocations: 9.344 kB / 0.5258 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005285/0.3898, allocations: 243.2 kB / 0.5261 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.3914, allocations: 1.103 MB / 0.5271 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005156/0.3919, allocations: 352.7 kB / 0.5275 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002856/0.3922, allocations: 173.8 kB / 0.5276 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.3923, allocations: 4.469 kB / 0.5276 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.3923, allocations: 45.19 kB / 0.5277 GB, free: 13.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 1.502e-06/0.3923, allocations: 0 / 0.5277 GB, free: 13.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.003783/0.3961, allocations: 2.471 MB / 0.5301 GB, free: 11.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.621e-05/0.3962, allocations: 109 kB / 0.5302 GB, free: 11.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000258/0.3965, allocations: 242.4 kB / 0.5304 GB, free: 11.39 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.3965, allocations: 35.83 kB / 0.5305 GB, free: 11.36 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.3966, allocations: 181.3 kB / 0.5306 GB, free: 11.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000145/0.3968, allocations: 208.8 kB / 0.5308 GB, free: 11.01 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/0.3969, allocations: 90.23 kB / 0.5309 GB, free: 10.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.3971, allocations: 346.9 kB / 0.5313 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002754/0.3973, allocations: 132 kB / 0.5314 GB, free: 10.55 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003357/0.3977, allocations: 234.8 kB / 0.5316 GB, free: 10.37 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006035/0.3983, allocations: 392.5 kB / 0.532 GB, free: 10.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3983, allocations: 1.5 kB / 0.532 GB, free: 10.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001018/0.3993, allocations: 0.56 MB / 0.5325 GB, free: 9.801 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.3994, allocations: 6.125 kB / 0.5325 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.3994, allocations: 3.031 kB / 0.5325 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003518/0.3997, allocations: 124.8 kB / 0.5327 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003624/0.4001, allocations: 101.6 kB / 0.5327 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004399/0.4045, allocations: 5.209 MB / 0.5378 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002493/0.4048, allocations: 20.08 kB / 0.5379 GB, free: 4.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.238e-05/0.4048, allocations: 22.03 kB / 0.5379 GB, free: 4.559 MB / 398.1 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000243/0.4051, allocations: 165.2 kB / 0.538 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.4052, allocations: 38.67 kB / 0.5381 GB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001092/0.4053, allocations: 52.23 kB / 0.5381 GB, free: 4.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.4053, allocations: 6.969 kB / 0.5381 GB, free: 4.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.709e-05/0.4054, allocations: 11.25 kB / 0.5381 GB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.4054, allocations: 5.109 kB / 0.5381 GB, free: 4.328 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002283/0.4077, allocations: 1.315 MB / 0.5394 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/0.4077, allocations: 2.594 kB / 0.5394 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004299/0.4081, allocations: 97.88 kB / 0.5395 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003316/0.4085, allocations: 99.89 kB / 0.5396 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.745e-05/0.4086, allocations: 19.42 kB / 0.5396 GB, free: 3.223 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004336/0.4129, allocations: 4.42 MB / 0.544 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/0.4129, allocations: 5.062 kB / 0.544 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.4145, allocations: 0.9268 MB / 0.5449 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/0.4147, allocations: 111.1 kB / 0.545 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.136e-05/0.4147, allocations: 17.16 kB / 0.545 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003047/0.415, allocations: 18.48 kB / 0.545 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.4152, allocations: 47.47 kB / 0.545 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.184e-05/0.4152, allocations: 15.62 kB / 0.5451 GB, free: 13.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001863/0.4154, allocations: 169.6 kB / 0.5452 GB, free: 13.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4154, allocations: 1.156 kB / 0.5452 GB, free: 13.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008269/0.4162, allocations: 120.8 kB / 0.5453 GB, free: 13.79 MB / 414.1 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001637/0.4164, allocations: 123.5 kB / 0.5455 GB, free: 13.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00147/0.4179, allocations: 0.7784 MB / 0.5462 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.4179, allocations: 0 / 0.5462 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000865/0.4188, allocations: 0.5769 MB / 0.5468 GB, free: 12.67 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006944/0.4195, allocations: 66.14 kB / 0.5468 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002371/0.4219, allocations: 1.084 MB / 0.5479 GB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006473/0.4225, allocations: 0.8226 MB / 0.5487 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001855/0.4227, allocations: 37.95 kB / 0.5487 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.409e-05/0.4228, allocations: 27.75 kB / 0.5488 GB, free: 11.05 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4228, allocations: 3.938 kB / 0.5488 GB, free: 11.04 MB / 414.1 MB Notification: Performance of Templates: time 0.01267/0.4355, allocations: 4.561 MB / 0.5532 GB, free: 7.117 MB / 414.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches