Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.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.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs") translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 114.4 kB / 17.78 MB, free: 5.258 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.001056/0.001056, allocations: 183.8 kB / 18.71 MB, free: 4.34 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.358/1.358, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.219/0.219, allocations: 44.18 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 59.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3544/0.3556, allocations: 60.82 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.006062/0.3618, allocations: 5.759 MB / 0.5245 GB, free: 15.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003984/0.3658, allocations: 2.289 MB / 0.5267 GB, free: 13.81 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006191/0.3664, allocations: 37.84 kB / 0.5268 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005086/0.3669, allocations: 227 kB / 0.527 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004448/0.3675, allocations: 181.5 kB / 0.5272 GB, free: 13.51 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.3685, allocations: 457.6 kB / 0.5276 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001116/0.3697, allocations: 1.108 MB / 0.5287 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007503/0.3704, allocations: 0.6203 MB / 0.5293 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004436/0.3709, allocations: 368.2 kB / 0.5296 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004003/0.3713, allocations: 391.8 kB / 0.53 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001207/0.3714, allocations: 95.12 kB / 0.5301 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002846/0.3717, allocations: 153.4 kB / 0.5303 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001863/0.3719, allocations: 220 kB / 0.5305 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003851/0.3723, allocations: 471.5 kB / 0.5309 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001233/0.3735, allocations: 1.27 MB / 0.5322 GB, free: 10.22 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3735, allocations: 0 / 0.5322 GB, free: 10.22 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3736, allocations: 5.031 kB / 0.5322 GB, free: 10.22 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.932e-05/0.3736, allocations: 0 / 0.5322 GB, free: 10.22 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001577/0.3752, allocations: 1.125 MB / 0.5333 GB, free: 9.312 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.3752, allocations: 10.19 kB / 0.5333 GB, free: 9.312 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001669/0.3754, allocations: 105.1 kB / 0.5334 GB, free: 9.258 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009677/0.3764, allocations: 0.6016 MB / 0.534 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.831e-05/0.3764, allocations: 66.56 kB / 0.534 GB, free: 8.707 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.3766, allocations: 96.34 kB / 0.5341 GB, free: 8.672 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.378, allocations: 0.8839 MB / 0.535 GB, free: 8.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.291e-05/0.378, allocations: 10.66 kB / 0.535 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.01e-05/0.3781, allocations: 41.25 kB / 0.535 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.012e-05/0.3781, allocations: 23.25 kB / 0.535 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009349/0.3791, allocations: 0.5228 MB / 0.5356 GB, free: 7.777 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004151/0.3832, allocations: 3.595 MB / 0.5391 GB, free: 4.602 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006058/0.3839, allocations: 223.3 kB / 0.5393 GB, free: 4.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001933/0.3841, allocations: 108.8 kB / 0.5394 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002362/0.3843, allocations: 249.6 kB / 0.5396 GB, free: 4.133 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.3844, allocations: 36.75 kB / 0.5397 GB, free: 4.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.084e-06/0.3844, allocations: 0 / 0.5397 GB, free: 4.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002458/0.3868, allocations: 1.289 MB / 0.5409 GB, free: 3.148 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/0.3869, allocations: 58.78 kB / 0.541 GB, free: 3.082 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004869/0.3874, allocations: 403.5 kB / 0.5414 GB, free: 2.836 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.3874, allocations: 30.92 kB / 0.5414 GB, free: 2.801 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002949/0.3877, allocations: 465.6 kB / 0.5418 GB, free: 2.391 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.911e-05/0.3878, allocations: 138.4 kB / 0.542 GB, free: 2.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.3879, allocations: 95.44 kB / 0.5421 GB, free: 2.203 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.3881, allocations: 362.1 kB / 0.5424 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.3883, allocations: 117.8 kB / 0.5425 GB, free: 1.797 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003349/0.3886, allocations: 308.9 kB / 0.5428 GB, free: 1.492 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005667/0.3892, allocations: 461.6 kB / 0.5432 GB, free: 1.102 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.3892, allocations: 2.062 kB / 0.5433 GB, free: 1.102 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007737/0.39, allocations: 0.5083 MB / 0.5437 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.39, allocations: 7.531 kB / 0.5438 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.3901, allocations: 10.34 kB / 0.5438 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00019/0.3903, allocations: 43.98 kB / 0.5438 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00037/0.3906, allocations: 121.5 kB / 0.5439 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000418/0.3911, allocations: 0.5632 MB / 0.5445 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002166/0.3913, allocations: 20.73 kB / 0.5445 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.58e-05/0.3914, allocations: 26.03 kB / 0.5445 GB, free: 220 kB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003566/0.3917, allocations: 232.6 kB / 0.5447 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.3918, allocations: 50.92 kB / 0.5448 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006745/0.3925, allocations: 342 kB / 0.5451 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.3925, allocations: 8.188 kB / 0.5451 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3925, allocations: 0 / 0.5451 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.607e-06/0.3926, allocations: 7.984 kB / 0.5451 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001569/0.3941, allocations: 1.044 MB / 0.5461 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.3942, allocations: 2.312 kB / 0.5462 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003688/0.3945, allocations: 82.61 kB / 0.5462 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001373/0.3947, allocations: 32.78 kB / 0.5463 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.397e-05/0.3947, allocations: 16.53 kB / 0.5463 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003666/0.3951, allocations: 0.5494 MB / 0.5468 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3951, allocations: 5.219 kB / 0.5468 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008458/0.396, allocations: 0.5539 MB / 0.5474 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.536e-05/0.3961, allocations: 112.5 kB / 0.5475 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.075e-05/0.3961, allocations: 8 kB / 0.5475 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.3963, allocations: 15.98 kB / 0.5475 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.219e-05/0.3964, allocations: 27.91 kB / 0.5475 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.3964, allocations: 12 kB / 0.5475 GB, free: 13.74 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002831/0.3967, allocations: 271.1 kB / 0.5478 GB, free: 13.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3967, allocations: 0 / 0.5478 GB, free: 13.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006046/0.3973, allocations: 124.1 kB / 0.5479 GB, free: 13.36 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002077/0.3975, allocations: 123.1 kB / 0.548 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006808/0.3982, allocations: 332.8 kB / 0.5483 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.3982, allocations: 0 / 0.5483 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002798/0.3985, allocations: 144.1 kB / 0.5485 GB, free: 12.76 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005286/0.399, allocations: 69.94 kB / 0.5485 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00279/0.4018, allocations: 1.611 MB / 0.5501 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005701/0.4024, allocations: 0.9677 MB / 0.5511 GB, free: 10.04 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001755/0.4026, allocations: 56.48 kB / 0.5511 GB, free: 9.988 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.241e-05/0.4027, allocations: 43.44 kB / 0.5512 GB, free: 9.945 MB / 414.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4027, allocations: 4 kB / 0.5512 GB, free: 9.941 MB / 414.1 MB Notification: Performance of Templates: time 0.01046/0.4132, allocations: 4.329 MB / 0.5554 GB, free: 5.641 MB / 414.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches