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.00132/0.00132, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00156/0.00156, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2341/0.2341, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 67.89 kB / 481.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4159/0.4173, allocations: 62.45 MB / 0.531 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004727/0.4221, allocations: 2.85 MB / 0.5338 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001761/0.4239, allocations: 0.7722 MB / 0.5345 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002138/0.4241, allocations: 10.81 kB / 0.5345 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002133/0.4244, allocations: 50.33 kB / 0.5346 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002584/0.4246, allocations: 132.6 kB / 0.5347 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004237/0.4251, allocations: 109.5 kB / 0.5348 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005664/0.4256, allocations: 439.1 kB / 0.5352 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003436/0.426, allocations: 141.9 kB / 0.5354 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003567/0.4264, allocations: 170.8 kB / 0.5355 GB, free: 10 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003065/0.4267, allocations: 176 kB / 0.5357 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.464e-05/0.4268, allocations: 32.34 kB / 0.5357 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001363/0.4269, allocations: 35.22 kB / 0.5358 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.763e-05/0.427, allocations: 81.8 kB / 0.5358 GB, free: 9.816 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002602/0.4273, allocations: 200.8 kB / 0.536 GB, free: 9.688 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000693/0.428, allocations: 438.9 kB / 0.5364 GB, free: 9.379 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.197e-06/0.428, allocations: 7.938 kB / 0.5365 GB, free: 9.371 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.564e-06/0.428, allocations: 0 / 0.5365 GB, free: 9.371 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.428, allocations: 0 / 0.5365 GB, free: 9.371 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.001258/0.4293, allocations: 0.6645 MB / 0.5371 GB, free: 8.785 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.695e-05/0.4293, allocations: 9.469 kB / 0.5371 GB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003363/0.4297, allocations: 57.66 kB / 0.5372 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005603/0.4303, allocations: 286 kB / 0.5374 GB, free: 8.477 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.181e-05/0.4303, allocations: 28.59 kB / 0.5375 GB, free: 8.461 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.4304, allocations: 45.97 kB / 0.5375 GB, free: 8.441 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000933/0.4314, allocations: 394.3 kB / 0.5379 GB, free: 8.164 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.4e-05/0.4314, allocations: 19.02 kB / 0.5379 GB, free: 8.148 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.159e-05/0.4315, allocations: 16.19 kB / 0.5379 GB, free: 8.137 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.37e-05/0.4315, allocations: 9.469 kB / 0.5379 GB, free: 8.137 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005126/0.432, allocations: 226 kB / 0.5381 GB, free: 8.035 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002268/0.4343, allocations: 1.711 MB / 0.5398 GB, free: 6.492 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004641/0.4348, allocations: 260.7 kB / 0.5401 GB, free: 6.258 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001907/0.435, allocations: 99.53 kB / 0.5402 GB, free: 6.172 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/0.435, allocations: 7.156 kB / 0.5402 GB, free: 6.168 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.976e-05/0.4351, allocations: 45.73 kB / 0.5402 GB, free: 6.117 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.154e-06/0.4351, allocations: 1.406 kB / 0.5402 GB, free: 6.117 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0008693/0.436, allocations: 264.6 kB / 0.5405 GB, free: 5.977 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001839/0.4362, allocations: 214.3 kB / 0.5407 GB, free: 5.723 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000438/0.4366, allocations: 279.7 kB / 0.5409 GB, free: 5.523 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.4366, allocations: 31.45 kB / 0.541 GB, free: 5.488 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002609/0.4369, allocations: 248 kB / 0.5412 GB, free: 5.262 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000136/0.4371, allocations: 125.6 kB / 0.5413 GB, free: 5.152 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001827/0.4372, allocations: 100.2 kB / 0.5414 GB, free: 5.086 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002432/0.4375, allocations: 350.5 kB / 0.5418 GB, free: 4.742 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002666/0.4378, allocations: 95.89 kB / 0.5418 GB, free: 4.703 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005631/0.4383, allocations: 429.6 kB / 0.5423 GB, free: 4.203 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007183/0.4391, allocations: 0.5681 MB / 0.5428 GB, free: 3.617 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/0.4391, allocations: 4.375 kB / 0.5428 GB, free: 3.617 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009099/0.44, allocations: 0.5282 MB / 0.5433 GB, free: 3.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.44, allocations: 10.16 kB / 0.5433 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.106e-05/0.4401, allocations: 12.47 kB / 0.5434 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.069e-05/0.4401, allocations: 15.25 kB / 0.5434 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004532/0.4406, allocations: 153.4 kB / 0.5435 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.152e-05/0.4406, allocations: 26.45 kB / 0.5435 GB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003372/0.441, allocations: 67.42 kB / 0.5436 GB, free: 3.246 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.627e-05/0.441, allocations: 30.91 kB / 0.5436 GB, free: 3.242 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.0001773/0.4412, allocations: 180.4 kB / 0.5438 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001527/0.4414, allocations: 44.53 kB / 0.5438 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.861e-05/0.4414, allocations: 34.39 kB / 0.5439 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.4414, allocations: 9.25 kB / 0.5439 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.739e-06/0.4415, allocations: 1.125 kB / 0.5439 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.4415, allocations: 6.203 kB / 0.5439 GB, free: 3.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/0.4427, allocations: 0.6483 MB / 0.5445 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.4427, allocations: 2.219 kB / 0.5445 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004238/0.4431, allocations: 84.17 kB / 0.5446 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.4431, allocations: 7.281 kB / 0.5446 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.794e-05/0.4432, allocations: 13.27 kB / 0.5446 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.4432, allocations: 7.312 kB / 0.5446 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.4432, allocations: 3.156 kB / 0.5446 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008268/0.444, allocations: 0.8351 MB / 0.5455 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.417e-05/0.4441, allocations: 107.7 kB / 0.5456 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.181e-05/0.4442, allocations: 8.375 kB / 0.5456 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003423/0.4445, allocations: 21.36 kB / 0.5456 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.695e-05/0.4446, allocations: 25.88 kB / 0.5456 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.4447, allocations: 7.5 kB / 0.5456 GB, free: 1.547 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002146/0.4449, allocations: 188.9 kB / 0.5458 GB, free: 1.414 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4449, allocations: 1.031 kB / 0.5458 GB, free: 1.414 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000757/0.4457, allocations: 98.86 kB / 0.5459 GB, free: 1.395 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.0001418/0.4458, allocations: 106.5 kB / 0.546 GB, free: 1.293 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005434/0.4464, allocations: 292.8 kB / 0.5463 GB, free: 1.172 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4464, allocations: 0 / 0.5463 GB, free: 1.172 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001597/0.4465, allocations: 96.42 kB / 0.5464 GB, free: 1.086 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009322/0.4475, allocations: 75.55 kB / 0.5464 GB, free: 1.016 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002015/0.4495, allocations: 1.56 MB / 0.548 GB, free: 15.4 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.4499, allocations: 0.8025 MB / 0.5487 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.45, allocations: 47.25 kB / 0.5488 GB, free: 14.53 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.827e-05/0.4501, allocations: 27.44 kB / 0.5488 GB, free: 14.5 MB / 414.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4501, allocations: 0 / 0.5488 GB, free: 14.5 MB / 414.1 MB Notification: Performance of Templates: time 0.00624/0.4563, allocations: 3.011 MB / 0.5518 GB, free: 11.52 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches