Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 109.3 kB / 18.39 MB, free: 4.758 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.001362/0.001362, allocations: 184.1 kB / 19.32 MB, free: 3.828 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.335/1.335, allocations: 222.9 MB / 243 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.2031/0.2031, allocations: 44.18 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001154, allocations: 70.39 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09204/0.09321, allocations: 60.83 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003382/0.09662, allocations: 2.603 MB / 473.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008521/0.09749, allocations: 0.6389 MB / 473.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.09761, allocations: 7.938 kB / 473.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.09774, allocations: 43.52 kB / 474 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001452/0.0979, allocations: 87.2 kB / 474.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.09811, allocations: 91.88 kB / 474.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003051/0.09843, allocations: 338.5 kB / 474.5 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.09858, allocations: 77.94 kB / 474.6 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/0.09873, allocations: 119.6 kB / 474.7 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001547/0.0989, allocations: 135.3 kB / 474.8 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.471e-05/0.09894, allocations: 20 kB / 474.8 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.77e-05/0.09898, allocations: 24 kB / 474.9 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.721e-05/0.09904, allocations: 59.77 kB / 474.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.09916, allocations: 139.2 kB / 475.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002583/0.09942, allocations: 302.8 kB / 475.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.09943, allocations: 0 / 475.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.09944, allocations: 4 kB / 475.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.09945, allocations: 0 / 475.4 MB, free: 8.953 MB / 350.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.0007699/0.1002, allocations: 0.5846 MB / 475.9 MB, free: 8.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.1003, allocations: 12.03 kB / 475.9 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.743e-05/0.1003, allocations: 36.56 kB / 476 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003016/0.1006, allocations: 268.5 kB / 476.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.1007, allocations: 24.92 kB / 476.3 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.691e-05/0.1007, allocations: 32.28 kB / 476.3 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004138/0.1011, allocations: 278.2 kB / 476.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.1012, allocations: 4 kB / 476.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.131e-05/0.1012, allocations: 12 kB / 476.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.1012, allocations: 7.938 kB / 476.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003809/0.1016, allocations: 187.7 kB / 476.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00143/0.103, allocations: 1.306 MB / 478.1 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003617/0.1034, allocations: 254.5 kB / 478.3 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001819/0.1036, allocations: 99.38 kB / 478.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.1036, allocations: 0 / 478.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.1036, allocations: 42.5 kB / 478.5 MB, free: 5.555 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.172e-06/0.1037, allocations: 4 kB / 478.5 MB, free: 5.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002228/0.1059, allocations: 1.565 MB / 480 MB, free: 3.777 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.106, allocations: 136.5 kB / 480.2 MB, free: 3.613 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.1061, allocations: 221 kB / 480.4 MB, free: 3.391 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.1062, allocations: 29.7 kB / 480.4 MB, free: 3.355 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.942e-05/0.1063, allocations: 184.2 kB / 480.6 MB, free: 3.172 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.649e-05/0.1064, allocations: 114.3 kB / 480.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.527e-05/0.1064, allocations: 70.12 kB / 480.8 MB, free: 2.984 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.1066, allocations: 334.8 kB / 481.1 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002229/0.1068, allocations: 100.8 kB / 481.2 MB, free: 2.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002851/0.1071, allocations: 241.4 kB / 481.4 MB, free: 2.254 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005349/0.1076, allocations: 364.9 kB / 481.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1076, allocations: 0 / 481.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000653/0.1083, allocations: 396.9 kB / 482.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.1083, allocations: 8 kB / 482.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.1083, allocations: 8.391 kB / 482.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.1084, allocations: 12 kB / 482.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003348/0.1087, allocations: 99.81 kB / 482.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.1087, allocations: 11.94 kB / 482.3 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/0.1089, allocations: 19.98 kB / 482.3 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/0.1089, allocations: 20.78 kB / 482.4 MB, free: 1.266 MB / 350.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.000117/0.1091, allocations: 153.7 kB / 482.5 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.216e-05/0.1092, allocations: 31.66 kB / 482.5 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.788e-05/0.1092, allocations: 33.72 kB / 482.6 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.1092, allocations: 7.984 kB / 482.6 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.1092, allocations: 3.938 kB / 482.6 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1093, allocations: 0 / 482.6 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.1105, allocations: 0.9816 MB / 483.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.1105, allocations: 288 / 483.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003417/0.1109, allocations: 83.88 kB / 483.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.1109, allocations: 0 / 483.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/0.111, allocations: 15.88 kB / 483.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.111, allocations: 4.5 kB / 483.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.111, allocations: 4 kB / 483.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008271/0.1118, allocations: 0.7212 MB / 484.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.971e-05/0.1119, allocations: 112.7 kB / 484.5 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.686e-05/0.1119, allocations: 11.92 kB / 484.5 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002663/0.1122, allocations: 19.98 kB / 484.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.1123, allocations: 31.91 kB / 484.6 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.1123, allocations: 8 kB / 484.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001114/0.1124, allocations: 160.5 kB / 484.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1124, allocations: 0 / 484.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004308/0.1129, allocations: 64 kB / 484.8 MB, free: 14.71 MB / 366.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 8.583e-05/0.113, allocations: 99.19 kB / 484.9 MB, free: 14.6 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005384/0.1135, allocations: 279.8 kB / 485.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1135, allocations: 0 / 485.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002542/0.1138, allocations: 136.7 kB / 485.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000572/0.1144, allocations: 50.28 kB / 485.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.1156, allocations: 0.8717 MB / 486.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000322/0.1159, allocations: 0.7642 MB / 487 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001118/0.116, allocations: 38.94 kB / 487 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.536e-05/0.1161, allocations: 23.44 kB / 487 MB, free: 12.38 MB / 366.1 MB Notification: Performance of SimCode: time 1.473e-06/0.1161, allocations: 3.938 kB / 487.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of Templates: time 0.4623/0.5784, allocations: 2.405 MB / 489.5 MB, free: 9.988 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches