Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009772/0.0009772, allocations: 197.6 kB / 17.43 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008059/0.0008059, allocations: 91.16 kB / 299.8 MB, free: 5.352 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3334/0.3334, allocations: 45.01 MB / 397 MB, free: 31.47 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003025/0.0003025, allocations: 8 kB / 470.8 MB, free: 7.094 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2938, allocations: 63.1 MB / 0.5214 GB, free: 38.5 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.001397/0.2952, allocations: 1.355 MB / 0.5227 GB, free: 37.52 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003397/0.2956, allocations: 101.3 kB / 0.5228 GB, free: 37.44 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.508e-05/0.2957, allocations: 6.781 kB / 0.5228 GB, free: 37.44 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 3.486e-05/0.2957, allocations: 11.11 kB / 0.5228 GB, free: 37.43 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001222/0.2958, allocations: 35.8 kB / 0.5228 GB, free: 37.41 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001241/0.296, allocations: 22.16 kB / 0.5229 GB, free: 37.39 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000126/0.2961, allocations: 120.9 kB / 0.523 GB, free: 37.33 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.2962, allocations: 22.72 kB / 0.523 GB, free: 37.32 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.278e-05/0.2963, allocations: 46.98 kB / 0.523 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.63e-05/0.2964, allocations: 47.3 kB / 0.5231 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.25e-05/0.2964, allocations: 5.094 kB / 0.5231 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.699e-05/0.2965, allocations: 5.5 kB / 0.5231 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.834e-05/0.2965, allocations: 15.28 kB / 0.5231 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.632e-05/0.2966, allocations: 81.73 kB / 0.5232 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001481/0.2967, allocations: 124.2 kB / 0.5233 GB, free: 37.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2967, allocations: 0 / 0.5233 GB, free: 37.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2967, allocations: 0 / 0.5233 GB, free: 37.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.2967, allocations: 4 kB / 0.5233 GB, free: 37.16 MB / 378.7 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.000373/0.2971, allocations: 388.9 kB / 0.5237 GB, free: 36.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.2972, allocations: 10.41 kB / 0.5237 GB, free: 36.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.777e-05/0.2972, allocations: 10.62 kB / 0.5237 GB, free: 36.76 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001274/0.2973, allocations: 187.4 kB / 0.5239 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.2974, allocations: 10.61 kB / 0.5239 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.668e-05/0.2974, allocations: 13.31 kB / 0.5239 GB, free: 36.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001819/0.2976, allocations: 135.1 kB / 0.524 GB, free: 36.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.2976, allocations: 2.844 kB / 0.524 GB, free: 36.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.2976, allocations: 7.938 kB / 0.524 GB, free: 36.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.2976, allocations: 2.844 kB / 0.524 GB, free: 36.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.246e-05/0.2977, allocations: 60.3 kB / 0.5241 GB, free: 36.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005576/0.2983, allocations: 0.5424 MB / 0.5246 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.734e-05/0.2984, allocations: 87.77 kB / 0.5247 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.298e-05/0.2984, allocations: 31.94 kB / 0.5247 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.166e-05/0.2985, allocations: 7.938 kB / 0.5248 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.518e-05/0.2985, allocations: 33.44 kB / 0.5248 GB, free: 35.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.2985, allocations: 0 / 0.5248 GB, free: 35.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004757/0.299, allocations: 302.1 kB / 0.5251 GB, free: 35.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/0.299, allocations: 87.64 kB / 0.5252 GB, free: 35.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.156e-05/0.2991, allocations: 117.2 kB / 0.5253 GB, free: 35.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.668e-06/0.2991, allocations: 28.23 kB / 0.5253 GB, free: 35.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.317e-05/0.2992, allocations: 112.3 kB / 0.5254 GB, free: 35.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.273e-05/0.2992, allocations: 33.48 kB / 0.5254 GB, free: 35.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-06/0.2992, allocations: 2.656 kB / 0.5254 GB, free: 35.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.47e-05/0.2993, allocations: 325.3 kB / 0.5257 GB, free: 34.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.794e-05/0.2993, allocations: 22.52 kB / 0.5258 GB, free: 34.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.248e-05/0.2994, allocations: 97.12 kB / 0.5259 GB, free: 34.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001124/0.2995, allocations: 119.3 kB / 0.526 GB, free: 34.63 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2995, allocations: 2.75 kB / 0.526 GB, free: 34.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002317/0.2998, allocations: 165.5 kB / 0.5261 GB, free: 34.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.2998, allocations: 5.781 kB / 0.5261 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2998, allocations: 2.781 kB / 0.5261 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001715/0.3, allocations: 41.61 kB / 0.5262 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.738e-05/0.3, allocations: 23.86 kB / 0.5262 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.3012, allocations: 2.543 MB / 0.5287 GB, free: 31.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.556e-05/0.3013, allocations: 13.88 kB / 0.5287 GB, free: 31.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.3013, allocations: 9.438 kB / 0.5287 GB, free: 31.88 MB / 378.7 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 7.246e-05/0.3014, allocations: 128.2 kB / 0.5288 GB, free: 31.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.787e-05/0.3014, allocations: 6.781 kB / 0.5288 GB, free: 31.74 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.076e-05/0.3015, allocations: 10.72 kB / 0.5289 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.3015, allocations: 2.875 kB / 0.5289 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.3015, allocations: 0 / 0.5289 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.3015, allocations: 7.219 kB / 0.5289 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001873/0.3017, allocations: 203.4 kB / 0.5291 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3017, allocations: 0 / 0.5291 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.531e-05/0.3018, allocations: 15 kB / 0.5291 GB, free: 31.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.677e-05/0.3019, allocations: 36.14 kB / 0.5291 GB, free: 31.49 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.3019, allocations: 6.312 kB / 0.5291 GB, free: 31.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001013/0.3029, allocations: 2.538 MB / 0.5316 GB, free: 28.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3029, allocations: 3.984 kB / 0.5316 GB, free: 28.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001979/0.3031, allocations: 306.8 kB / 0.5319 GB, free: 28.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.101e-05/0.3032, allocations: 83.77 kB / 0.532 GB, free: 28.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.3032, allocations: 6.969 kB / 0.532 GB, free: 28.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.069e-05/0.3033, allocations: 3.469 kB / 0.532 GB, free: 28.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.979e-05/0.3033, allocations: 6.875 kB / 0.532 GB, free: 28.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-06/0.3033, allocations: 2.781 kB / 0.532 GB, free: 28.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.135e-05/0.3033, allocations: 102.3 kB / 0.5321 GB, free: 28.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3033, allocations: 0 / 0.5321 GB, free: 28.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000289/0.3036, allocations: 36.75 kB / 0.5321 GB, free: 28.4 MB / 378.7 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 8.921e-05/0.3037, allocations: 102.9 kB / 0.5322 GB, free: 28.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003072/0.304, allocations: 295.9 kB / 0.5325 GB, free: 28.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3041, allocations: 0 / 0.5325 GB, free: 28.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001735/0.3042, allocations: 263.5 kB / 0.5327 GB, free: 27.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003778/0.3046, allocations: 31.75 kB / 0.5328 GB, free: 27.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006261/0.3053, allocations: 0.5685 MB / 0.5333 GB, free: 27.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001265/0.3054, allocations: 0.7124 MB / 0.534 GB, free: 26.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.786e-05/0.3054, allocations: 11.92 kB / 0.534 GB, free: 26.65 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.562e-05/0.3055, allocations: 13.28 kB / 0.5341 GB, free: 26.64 MB / 378.7 MB Notification: Performance of SimCode: time 6.61e-07/0.3055, allocations: 0 / 0.5341 GB, free: 26.64 MB / 378.7 MB Notification: Performance of Templates: time 0.003233/0.3087, allocations: 1.438 MB / 0.5355 GB, free: 26.53 MB / 378.7 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","../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches