Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.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.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00134/0.00134, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001562/0.001562, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2245/0.2245, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001657, allocations: 79.81 kB / 481.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3781/0.3798, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003818/0.3836, allocations: 2.629 MB / 0.5335 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.3849, allocations: 0.7286 MB / 0.5342 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001562/0.3851, allocations: 9.438 kB / 0.5343 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001538/0.3853, allocations: 47.58 kB / 0.5343 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001579/0.3855, allocations: 84.83 kB / 0.5344 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000291/0.3858, allocations: 102.9 kB / 0.5345 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003424/0.3861, allocations: 331.9 kB / 0.5348 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001725/0.3863, allocations: 83 kB / 0.5349 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00022/0.3865, allocations: 140.8 kB / 0.535 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.3867, allocations: 125.6 kB / 0.5351 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.945e-05/0.3868, allocations: 22.34 kB / 0.5352 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.677e-05/0.3868, allocations: 36.64 kB / 0.5352 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.648e-05/0.3869, allocations: 55.38 kB / 0.5352 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.387, allocations: 145.8 kB / 0.5354 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000414/0.3874, allocations: 309.3 kB / 0.5357 GB, free: 9.969 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3875, allocations: 0 / 0.5357 GB, free: 9.969 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3875, allocations: 0 / 0.5357 GB, free: 9.969 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.3875, allocations: 1.281 kB / 0.5357 GB, free: 9.969 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008615/0.3883, allocations: 0.5918 MB / 0.5363 GB, free: 9.434 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.3884, allocations: 8.594 kB / 0.5363 GB, free: 9.434 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002282/0.3886, allocations: 47.77 kB / 0.5363 GB, free: 9.414 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003611/0.389, allocations: 289.3 kB / 0.5366 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.389, allocations: 18.56 kB / 0.5366 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.832e-05/0.3891, allocations: 29.47 kB / 0.5366 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004572/0.3895, allocations: 280.4 kB / 0.5369 GB, free: 8.906 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.3896, allocations: 6.781 kB / 0.5369 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.258e-05/0.3896, allocations: 10.72 kB / 0.5369 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.3896, allocations: 6.062 kB / 0.5369 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004041/0.39, allocations: 179.7 kB / 0.5371 GB, free: 8.816 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.3916, allocations: 1.311 MB / 0.5384 GB, free: 7.594 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000415/0.392, allocations: 254.7 kB / 0.5386 GB, free: 7.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002008/0.3922, allocations: 104.5 kB / 0.5387 GB, free: 7.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.599e-05/0.3922, allocations: 2.25 kB / 0.5387 GB, free: 7.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.3923, allocations: 38.03 kB / 0.5387 GB, free: 7.297 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.653e-06/0.3923, allocations: 4 kB / 0.5388 GB, free: 7.293 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.00256/0.3948, allocations: 1.572 MB / 0.5403 GB, free: 5.887 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.167e-05/0.3949, allocations: 137.2 kB / 0.5404 GB, free: 5.727 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.3952, allocations: 232 kB / 0.5406 GB, free: 5.555 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.3952, allocations: 32.08 kB / 0.5407 GB, free: 5.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.3953, allocations: 174.3 kB / 0.5408 GB, free: 5.359 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.794e-05/0.3954, allocations: 120.2 kB / 0.541 GB, free: 5.254 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.92e-05/0.3955, allocations: 67.52 kB / 0.541 GB, free: 5.207 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.3956, allocations: 337.2 kB / 0.5413 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002429/0.3959, allocations: 104.5 kB / 0.5414 GB, free: 4.828 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003333/0.3962, allocations: 240.2 kB / 0.5417 GB, free: 4.605 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006028/0.3968, allocations: 360.7 kB / 0.542 GB, free: 4.324 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.3968, allocations: 1.656 kB / 0.542 GB, free: 4.324 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007755/0.3976, allocations: 396.9 kB / 0.5424 GB, free: 4.121 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.3976, allocations: 7.062 kB / 0.5424 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.3977, allocations: 4.469 kB / 0.5424 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.3977, allocations: 7 kB / 0.5424 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003644/0.3981, allocations: 110.6 kB / 0.5425 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.3981, allocations: 6.969 kB / 0.5425 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000224/0.3983, allocations: 33.88 kB / 0.5426 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.3983, allocations: 13.38 kB / 0.5426 GB, free: 4.066 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001473/0.3985, allocations: 157 kB / 0.5427 GB, free: 3.918 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.3986, allocations: 33.03 kB / 0.5427 GB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.339e-05/0.3987, allocations: 36.2 kB / 0.5428 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.3987, allocations: 4.375 kB / 0.5428 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.3987, allocations: 1.406 kB / 0.5428 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.3987, allocations: 1.312 kB / 0.5428 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001414/0.4001, allocations: 0.9838 MB / 0.5437 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.4002, allocations: 1.094 kB / 0.5437 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003537/0.4005, allocations: 74.36 kB / 0.5438 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.4005, allocations: 2.25 kB / 0.5438 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/0.4006, allocations: 16.08 kB / 0.5438 GB, free: 3.016 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.4006, allocations: 6.281 kB / 0.5438 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.4006, allocations: 2.438 kB / 0.5438 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009761/0.4016, allocations: 0.7296 MB / 0.5446 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.01e-05/0.4016, allocations: 104.2 kB / 0.5447 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.767e-05/0.4017, allocations: 12.41 kB / 0.5447 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002731/0.402, allocations: 18.02 kB / 0.5447 GB, free: 2.332 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.084e-05/0.4021, allocations: 30.77 kB / 0.5447 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.987e-05/0.4021, allocations: 11.62 kB / 0.5447 GB, free: 2.309 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001494/0.4022, allocations: 159 kB / 0.5449 GB, free: 2.191 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4022, allocations: 3.938 kB / 0.5449 GB, free: 2.188 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000481/0.4027, allocations: 67.69 kB / 0.5449 GB, free: 2.176 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.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 (32): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.703e-05/0.4028, allocations: 101.2 kB / 0.545 GB, free: 2.082 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006161/0.4035, allocations: 286.8 kB / 0.5453 GB, free: 1.961 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4035, allocations: 0 / 0.5453 GB, free: 1.961 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002854/0.4038, allocations: 130.8 kB / 0.5454 GB, free: 1.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006346/0.4044, allocations: 44.36 kB / 0.5455 GB, free: 1.887 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.4057, allocations: 0.8798 MB / 0.5463 GB, free: 1.188 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.4061, allocations: 0.7642 MB / 0.5471 GB, free: 404 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001251/0.4062, allocations: 34.95 kB / 0.5471 GB, free: 364 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.925e-05/0.4063, allocations: 31.42 kB / 0.5472 GB, free: 332 kB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4063, allocations: 0 / 0.5472 GB, free: 332 kB / 398.1 MB Notification: Performance of Templates: time 0.005501/0.4118, allocations: 2.511 MB / 0.5496 GB, free: 13.83 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches