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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009496/0.0009497, allocations: 180.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.285/1.285, allocations: 221.3 MB / 236 MB, free: 2.918 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008093/0.0008093, allocations: 80.17 kB / 287 MB, free: 196 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1783/0.1783, allocations: 44.15 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.319e-05/2.323e-05, allocations: 224 / 451.8 MB, free: 9.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1188, allocations: 61.92 MB / 0.5017 GB, free: 11.47 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3645/0.4834, allocations: 88.69 MB / 0.5883 GB, free: 0.6523 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001603/0.4836, allocations: 63.97 kB / 0.5884 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01317/0.4968, allocations: 4.937 MB / 0.5932 GB, free: 11.65 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.4968, allocations: 0 / 0.5932 GB, free: 11.65 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.92e-05/0.4969, allocations: 16 kB / 0.5932 GB, free: 11.64 MB / 410.7 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.0006607/0.4975, allocations: 0.506 MB / 0.5937 GB, free: 11.08 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.4976, allocations: 16.03 kB / 0.5937 GB, free: 11.07 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.379e-05/0.4976, allocations: 31.62 kB / 0.5937 GB, free: 11.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002972/0.498, allocations: 250.5 kB / 0.594 GB, free: 10.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.498, allocations: 20.52 kB / 0.594 GB, free: 10.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.09e-05/0.498, allocations: 28 kB / 0.594 GB, free: 10.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003821/0.4984, allocations: 250.1 kB / 0.5943 GB, free: 10.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.4985, allocations: 11.84 kB / 0.5943 GB, free: 10.42 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.512e-05/0.4985, allocations: 12 kB / 0.5943 GB, free: 10.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.4985, allocations: 11.98 kB / 0.5943 GB, free: 10.4 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002398/0.4988, allocations: 135.9 kB / 0.5944 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001388/0.5001, allocations: 1.302 MB / 0.5957 GB, free: 8.855 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002855/0.5004, allocations: 234.4 kB / 0.5959 GB, free: 8.59 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.5006, allocations: 79.42 kB / 0.596 GB, free: 8.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.5006, allocations: 4 kB / 0.596 GB, free: 8.496 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.5006, allocations: 46.69 kB / 0.5961 GB, free: 8.441 MB / 410.7 MB Notification: Performance of pre-optimization done (n=26): time 1.382e-06/0.5006, allocations: 0 / 0.5961 GB, free: 8.441 MB / 410.7 MB Notification: Performance of matching and sorting (n=32): time 0.001735/0.5024, allocations: 1.4 MB / 0.5974 GB, free: 6.836 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.5024, allocations: 136.5 kB / 0.5975 GB, free: 6.672 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001722/0.5026, allocations: 201 kB / 0.5977 GB, free: 6.469 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.305e-05/0.5027, allocations: 29.7 kB / 0.5978 GB, free: 6.434 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.994e-05/0.5028, allocations: 168.3 kB / 0.5979 GB, free: 6.266 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.265e-05/0.5028, allocations: 118.3 kB / 0.598 GB, free: 6.148 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.494e-05/0.5029, allocations: 8 kB / 0.5981 GB, free: 6.141 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.503, allocations: 346.8 kB / 0.5984 GB, free: 5.793 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.5031, allocations: 68.88 kB / 0.5984 GB, free: 5.723 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000185/0.5033, allocations: 201.9 kB / 0.5986 GB, free: 5.465 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001691/0.5035, allocations: 112.8 kB / 0.5987 GB, free: 5.355 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.5035, allocations: 0 / 0.5987 GB, free: 5.355 MB / 410.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004742/0.5039, allocations: 345 kB / 0.5991 GB, free: 5.012 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.504, allocations: 4 kB / 0.5991 GB, free: 5.008 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.504, allocations: 9.188 kB / 0.5991 GB, free: 5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.504, allocations: 7.938 kB / 0.5991 GB, free: 4.992 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003829/0.5044, allocations: 116.3 kB / 0.5992 GB, free: 4.879 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.5044, allocations: 7.938 kB / 0.5992 GB, free: 4.871 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001947/0.5046, allocations: 27.98 kB / 0.5992 GB, free: 4.844 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.782e-05/0.5047, allocations: 20 kB / 0.5993 GB, free: 4.824 MB / 410.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001035/0.5048, allocations: 128.8 kB / 0.5994 GB, free: 4.691 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.5049, allocations: 35.58 kB / 0.5994 GB, free: 4.656 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.751e-05/0.505, allocations: 37.83 kB / 0.5995 GB, free: 4.613 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.261e-06/0.505, allocations: 4 kB / 0.5995 GB, free: 4.609 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.505, allocations: 7.938 kB / 0.5995 GB, free: 4.602 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.505, allocations: 3.984 kB / 0.5995 GB, free: 4.598 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.5062, allocations: 0.9231 MB / 0.6004 GB, free: 3.609 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.5062, allocations: 0 / 0.6004 GB, free: 3.609 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003606/0.5065, allocations: 91.94 kB / 0.6005 GB, free: 3.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.5065, allocations: 0 / 0.6005 GB, free: 3.52 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.5066, allocations: 12.25 kB / 0.6005 GB, free: 3.508 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.823e-06/0.5066, allocations: 11.92 kB / 0.6005 GB, free: 3.496 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.5066, allocations: 4 kB / 0.6005 GB, free: 3.492 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006191/0.5072, allocations: 0.7022 MB / 0.6012 GB, free: 2.734 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.927e-05/0.5073, allocations: 100.8 kB / 0.6013 GB, free: 2.617 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.891e-05/0.5073, allocations: 12.06 kB / 0.6013 GB, free: 2.605 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002676/0.5076, allocations: 23.98 kB / 0.6013 GB, free: 2.582 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.61e-05/0.5077, allocations: 23.97 kB / 0.6013 GB, free: 2.559 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.5077, allocations: 15.94 kB / 0.6013 GB, free: 2.543 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001358/0.5079, allocations: 153.4 kB / 0.6015 GB, free: 2.395 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5079, allocations: 0 / 0.6015 GB, free: 2.395 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004321/0.5083, allocations: 72.31 kB / 0.6016 GB, free: 2.324 MB / 410.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001441/0.5085, allocations: 111 kB / 0.6017 GB, free: 2.207 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003597/0.5088, allocations: 219.7 kB / 0.6019 GB, free: 1.992 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.5088, allocations: 0 / 0.6019 GB, free: 1.992 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001531/0.509, allocations: 104.6 kB / 0.602 GB, free: 1.891 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003966/0.5094, allocations: 44.2 kB / 0.602 GB, free: 1.848 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.5105, allocations: 0.7082 MB / 0.6027 GB, free: 1.105 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.5108, allocations: 0.7839 MB / 0.6035 GB, free: 296 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001468/0.511, allocations: 34.95 kB / 0.6035 GB, free: 260 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.486e-05/0.511, allocations: 23.44 kB / 0.6035 GB, free: 240 kB / 410.7 MB Notification: Performance of SimCode: time 2.21e-07/0.511, allocations: 0 / 0.6035 GB, free: 240 kB / 410.7 MB Notification: Performance of Templates: time 0.004877/0.5159, allocations: 2.118 MB / 0.6056 GB, free: 14.13 MB / 426.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches