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.001528/0.001528, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001556/0.001557, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.387/1.387, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.2064/0.2064, allocations: 44.19 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 59.89 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3674, allocations: 60.82 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003206/0.3707, allocations: 2.607 MB / 0.5214 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001007/0.3717, allocations: 0.651 MB / 0.5221 GB, free: 1.297 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.3719, allocations: 3.875 kB / 0.5221 GB, free: 1.297 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001609/0.372, allocations: 46.55 kB / 0.5221 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001859/0.3723, allocations: 84.8 kB / 0.5222 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002751/0.3725, allocations: 81.91 kB / 0.5223 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003782/0.3729, allocations: 337 kB / 0.5226 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001957/0.3731, allocations: 82.52 kB / 0.5227 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001706/0.3733, allocations: 130 kB / 0.5228 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.3735, allocations: 132.3 kB / 0.5229 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.445e-05/0.3736, allocations: 22.28 kB / 0.5229 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.949e-05/0.3736, allocations: 22.94 kB / 0.523 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.624e-05/0.3737, allocations: 60.78 kB / 0.523 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001296/0.3738, allocations: 143.8 kB / 0.5232 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003892/0.3742, allocations: 300.1 kB / 0.5234 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.3742, allocations: 1.125 kB / 0.5234 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.115e-06/0.3742, allocations: 0 / 0.5234 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.3742, allocations: 3.938 kB / 0.5234 GB, free: 0.5625 MB / 382.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.0008458/0.3751, allocations: 0.5931 MB / 0.524 GB, free: 64 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.3751, allocations: 8.344 kB / 0.524 GB, free: 64 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.79e-05/0.3752, allocations: 37.75 kB / 0.5241 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.3756, allocations: 281.6 kB / 0.5243 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.513e-05/0.3756, allocations: 22.28 kB / 0.5244 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.082e-05/0.3757, allocations: 33.86 kB / 0.5244 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005027/0.3762, allocations: 273.8 kB / 0.5247 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/0.3762, allocations: 7.125 kB / 0.5247 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.534e-05/0.3763, allocations: 14.47 kB / 0.5247 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.3763, allocations: 7.75 kB / 0.5247 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004008/0.3767, allocations: 177.8 kB / 0.5248 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001702/0.3784, allocations: 1.299 MB / 0.5261 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004749/0.3789, allocations: 252.5 kB / 0.5264 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002139/0.3791, allocations: 101 kB / 0.5265 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.3792, allocations: 5.984 kB / 0.5265 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.3792, allocations: 43.61 kB / 0.5265 GB, free: 14.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.563e-06/0.3792, allocations: 0 / 0.5265 GB, free: 14.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002609/0.3818, allocations: 1.579 MB / 0.528 GB, free: 12.88 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.107e-05/0.3819, allocations: 133.3 kB / 0.5282 GB, free: 12.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002092/0.3821, allocations: 228.7 kB / 0.5284 GB, free: 12.56 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.3822, allocations: 31.08 kB / 0.5284 GB, free: 12.53 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.3823, allocations: 178.3 kB / 0.5286 GB, free: 12.36 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.697e-05/0.3824, allocations: 126.1 kB / 0.5287 GB, free: 12.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.3825, allocations: 70.83 kB / 0.5288 GB, free: 12.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.3826, allocations: 337.7 kB / 0.5291 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002286/0.3828, allocations: 97.19 kB / 0.5292 GB, free: 11.83 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003096/0.3831, allocations: 240.7 kB / 0.5294 GB, free: 11.61 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000574/0.3837, allocations: 366.4 kB / 0.5298 GB, free: 11.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.3837, allocations: 1.25 kB / 0.5298 GB, free: 11.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007564/0.3845, allocations: 401.2 kB / 0.5302 GB, free: 11.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.3845, allocations: 6.75 kB / 0.5302 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.3845, allocations: 5.438 kB / 0.5302 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/0.3846, allocations: 10.52 kB / 0.5302 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000388/0.385, allocations: 102.3 kB / 0.5303 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.451e-05/0.385, allocations: 11.59 kB / 0.5303 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002039/0.3852, allocations: 25.73 kB / 0.5303 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.101e-05/0.3852, allocations: 21.44 kB / 0.5303 GB, free: 11.06 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.0001597/0.3854, allocations: 148.6 kB / 0.5305 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.3855, allocations: 40.61 kB / 0.5305 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.715e-05/0.3856, allocations: 32.38 kB / 0.5305 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.3856, allocations: 4.125 kB / 0.5305 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.3856, allocations: 1.719 kB / 0.5305 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.555e-06/0.3856, allocations: 9.266 kB / 0.5306 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001501/0.3871, allocations: 0.983 MB / 0.5315 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.3872, allocations: 2.25 kB / 0.5315 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003398/0.3875, allocations: 82.12 kB / 0.5316 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.3875, allocations: 2.125 kB / 0.5316 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.595e-05/0.3875, allocations: 11.97 kB / 0.5316 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.3876, allocations: 2.062 kB / 0.5316 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.3876, allocations: 6.156 kB / 0.5316 GB, free: 9.996 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009733/0.3885, allocations: 0.7216 MB / 0.5323 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.13e-05/0.3886, allocations: 101.6 kB / 0.5324 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.375e-05/0.3887, allocations: 19.02 kB / 0.5324 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000268/0.389, allocations: 18.61 kB / 0.5325 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.538e-05/0.389, allocations: 26.88 kB / 0.5325 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.3891, allocations: 7.031 kB / 0.5325 GB, free: 9.305 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001401/0.3892, allocations: 162.3 kB / 0.5326 GB, free: 9.184 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3892, allocations: 0 / 0.5326 GB, free: 9.184 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004728/0.3897, allocations: 68.41 kB / 0.5327 GB, free: 9.172 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 0.0001111/0.3898, allocations: 102 kB / 0.5328 GB, free: 9.078 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006256/0.3904, allocations: 278.3 kB / 0.5331 GB, free: 8.965 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3905, allocations: 1.156 kB / 0.5331 GB, free: 8.965 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002763/0.3907, allocations: 129.8 kB / 0.5332 GB, free: 8.914 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006243/0.3914, allocations: 53.05 kB / 0.5332 GB, free: 8.879 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.3928, allocations: 0.8823 MB / 0.5341 GB, free: 8.195 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/0.3932, allocations: 0.7776 MB / 0.5349 GB, free: 7.449 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001347/0.3933, allocations: 34.05 kB / 0.5349 GB, free: 7.426 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.862e-05/0.3934, allocations: 28.2 kB / 0.5349 GB, free: 7.414 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3934, allocations: 1.281 kB / 0.5349 GB, free: 7.414 MB / 398.1 MB Notification: Performance of Templates: time 0.005891/0.3993, allocations: 2.455 MB / 0.5373 GB, free: 6.207 MB / 398.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 -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/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_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches