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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001575/0.001575, allocations: 201.8 kB / 8.767 MB, free: 288 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008536/0.0008536, allocations: 97.34 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1943/0.1943, allocations: 45.15 MB / 383.8 MB, free: 268 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.494e-05/1.491e-05, allocations: 0 / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1501, allocations: 63.25 MB / 0.5043 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4212/0.5713, allocations: 89.1 MB / 0.5914 GB, free: 13.53 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001669/0.5716, allocations: 62.72 kB / 0.5914 GB, free: 13.5 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0138/0.5854, allocations: 4.964 MB / 0.5963 GB, free: 9.375 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.5854, allocations: 0 / 0.5963 GB, free: 9.375 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.831e-05/0.5854, allocations: 4 kB / 0.5963 GB, free: 9.371 MB / 394.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.000803/0.5863, allocations: 0.5206 MB / 0.5968 GB, free: 8.824 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.5863, allocations: 8.031 kB / 0.5968 GB, free: 8.816 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002582/0.5866, allocations: 51.61 kB / 0.5968 GB, free: 8.766 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00034/0.5869, allocations: 255.9 kB / 0.5971 GB, free: 8.492 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.587, allocations: 11.98 kB / 0.5971 GB, free: 8.48 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.354e-05/0.587, allocations: 12 kB / 0.5971 GB, free: 8.469 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002953/0.5873, allocations: 133.2 kB / 0.5972 GB, free: 8.379 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003931/0.5877, allocations: 220.2 kB / 0.5974 GB, free: 8.18 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.698e-05/0.5878, allocations: 7.906 kB / 0.5974 GB, free: 8.172 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.205e-05/0.5878, allocations: 0 / 0.5974 GB, free: 8.172 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.5878, allocations: 8 kB / 0.5975 GB, free: 8.164 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.5895, allocations: 1.257 MB / 0.5987 GB, free: 6.945 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.5898, allocations: 218.1 kB / 0.5989 GB, free: 6.738 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/0.59, allocations: 69 kB / 0.599 GB, free: 6.676 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.59, allocations: 15.45 kB / 0.599 GB, free: 6.664 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.5901, allocations: 34.69 kB / 0.599 GB, free: 6.621 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 1.673e-06/0.5901, allocations: 0 / 0.599 GB, free: 6.621 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.001964/0.592, allocations: 1.335 MB / 0.6003 GB, free: 5.168 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.725e-05/0.5921, allocations: 132.5 kB / 0.6004 GB, free: 5.008 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/0.5923, allocations: 188.1 kB / 0.6006 GB, free: 4.848 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.5923, allocations: 25.7 kB / 0.6006 GB, free: 4.816 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.5925, allocations: 183.6 kB / 0.6008 GB, free: 4.66 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.268e-05/0.5926, allocations: 108 kB / 0.6009 GB, free: 4.566 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.371e-05/0.5926, allocations: 0 / 0.6009 GB, free: 4.566 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.5928, allocations: 337.4 kB / 0.6012 GB, free: 4.238 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.5929, allocations: 62.75 kB / 0.6013 GB, free: 4.203 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002396/0.5932, allocations: 205.7 kB / 0.6015 GB, free: 3.977 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001603/0.5933, allocations: 92.66 kB / 0.6016 GB, free: 3.914 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.5933, allocations: 7.984 kB / 0.6016 GB, free: 3.906 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004742/0.5938, allocations: 295.3 kB / 0.6019 GB, free: 3.66 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.603e-05/0.5939, allocations: 8 kB / 0.6019 GB, free: 3.652 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.5939, allocations: 4 kB / 0.6019 GB, free: 3.648 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.103e-05/0.5939, allocations: 11.94 kB / 0.6019 GB, free: 3.637 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004101/0.5943, allocations: 107.4 kB / 0.602 GB, free: 3.535 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.856e-05/0.5944, allocations: 19.86 kB / 0.602 GB, free: 3.516 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001947/0.5946, allocations: 23.92 kB / 0.602 GB, free: 3.492 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.705e-05/0.5946, allocations: 15.31 kB / 0.6021 GB, free: 3.48 MB / 394.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.0001196/0.5947, allocations: 120.5 kB / 0.6022 GB, free: 3.359 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.5948, allocations: 31.62 kB / 0.6022 GB, free: 3.328 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.918e-05/0.5949, allocations: 28.58 kB / 0.6022 GB, free: 3.316 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.5949, allocations: 4 kB / 0.6022 GB, free: 3.312 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.5949, allocations: 4 kB / 0.6022 GB, free: 3.309 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.595, allocations: 3.984 kB / 0.6022 GB, free: 3.305 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001248/0.5962, allocations: 0.8605 MB / 0.6031 GB, free: 2.496 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.5962, allocations: 4 kB / 0.6031 GB, free: 2.492 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003916/0.5966, allocations: 86.95 kB / 0.6032 GB, free: 2.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.5966, allocations: 4 kB / 0.6032 GB, free: 2.406 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.511e-05/0.5967, allocations: 6.984 kB / 0.6032 GB, free: 2.402 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.5967, allocations: 4.25 kB / 0.6032 GB, free: 2.398 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/0.5967, allocations: 7.953 kB / 0.6032 GB, free: 2.391 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000716/0.5974, allocations: 0.6866 MB / 0.6039 GB, free: 1.734 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.309e-05/0.5975, allocations: 100.8 kB / 0.604 GB, free: 1.617 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.903e-05/0.5976, allocations: 0 / 0.604 GB, free: 1.617 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002734/0.5979, allocations: 27.91 kB / 0.604 GB, free: 1.59 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.208e-05/0.5979, allocations: 31.47 kB / 0.604 GB, free: 1.562 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.598, allocations: 11.62 kB / 0.604 GB, free: 1.555 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001295/0.5981, allocations: 150.3 kB / 0.6042 GB, free: 1.43 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5981, allocations: 0 / 0.6042 GB, free: 1.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004644/0.5986, allocations: 56 kB / 0.6042 GB, free: 1.375 MB / 394.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.0001582/0.5987, allocations: 99.12 kB / 0.6043 GB, free: 1.266 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000316/0.5991, allocations: 190.9 kB / 0.6045 GB, free: 1.125 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.5991, allocations: 4.812 kB / 0.6045 GB, free: 1.121 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001505/0.5992, allocations: 93.67 kB / 0.6046 GB, free: 1.055 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004199/0.5997, allocations: 31.67 kB / 0.6046 GB, free: 1.031 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.6008, allocations: 0.695 MB / 0.6053 GB, free: 340 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.6012, allocations: 0.7762 MB / 0.6061 GB, free: 15.53 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001532/0.6014, allocations: 35.27 kB / 0.6061 GB, free: 15.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.642e-05/0.6015, allocations: 27.38 kB / 0.6061 GB, free: 15.47 MB / 410.7 MB Notification: Performance of SimCode: time 2.7e-07/0.6015, allocations: 0 / 0.6061 GB, free: 15.47 MB / 410.7 MB Notification: Performance of Templates: time 0.004863/0.6063, allocations: 2.006 MB / 0.6081 GB, free: 13.49 MB / 410.7 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","../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches