Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002231/0.002235, allocations: 186 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.948/1.948, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001138/0.001138, allocations: 91.39 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5077/0.5077, allocations: 43.55 MB / 362.7 MB, free: 52.22 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004827/0.0004831, allocations: 12 kB / 431.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1281, allocations: 58.85 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4524/0.5806, allocations: 86.39 MB / 0.5631 GB, free: 356 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.5809, allocations: 67.97 kB / 0.5632 GB, free: 288 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01023/0.5911, allocations: 2.497 MB / 0.5656 GB, free: 13.8 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.5912, allocations: 0 / 0.5656 GB, free: 13.8 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.5912, allocations: 4 kB / 0.5656 GB, free: 13.8 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006568/0.5918, allocations: 417.5 kB / 0.566 GB, free: 13.35 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.5919, allocations: 12.56 kB / 0.566 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.808e-05/0.592, allocations: 19.25 kB / 0.566 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.5922, allocations: 198.8 kB / 0.5662 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.5923, allocations: 12 kB / 0.5662 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.579e-05/0.5923, allocations: 12 kB / 0.5662 GB, free: 13.06 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004067/0.5927, allocations: 125.6 kB / 0.5664 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.5928, allocations: 3.719 kB / 0.5664 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/0.5928, allocations: 8 kB / 0.5664 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.5928, allocations: 5.031 kB / 0.5664 GB, free: 12.92 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003087/0.5931, allocations: 94 kB / 0.5665 GB, free: 12.83 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009288/0.5941, allocations: 472.2 kB / 0.5669 GB, free: 12.32 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003295/0.5944, allocations: 114.5 kB / 0.567 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.5945, allocations: 4 kB / 0.567 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.5945, allocations: 38.8 kB / 0.5671 GB, free: 12.15 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 2.264e-06/0.5945, allocations: 0 / 0.5671 GB, free: 12.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.002199/0.5967, allocations: 0.8174 MB / 0.5679 GB, free: 11.24 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/0.5968, allocations: 51.41 kB / 0.5679 GB, free: 11.18 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.597, allocations: 127.4 kB / 0.568 GB, free: 11.04 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.597, allocations: 29.69 kB / 0.5681 GB, free: 11.01 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.5971, allocations: 174.8 kB / 0.5682 GB, free: 10.84 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.125e-05/0.5972, allocations: 67 kB / 0.5683 GB, free: 10.77 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.433e-05/0.5972, allocations: 4 kB / 0.5683 GB, free: 10.77 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.5974, allocations: 318.8 kB / 0.5686 GB, free: 10.45 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001658/0.5975, allocations: 52.28 kB / 0.5687 GB, free: 10.39 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.5978, allocations: 80.09 kB / 0.5687 GB, free: 10.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002068/0.598, allocations: 52 kB / 0.5688 GB, free: 10.25 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.598, allocations: 3.953 kB / 0.5688 GB, free: 10.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006136/0.5986, allocations: 213.6 kB / 0.569 GB, free: 10.04 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.5987, allocations: 4 kB / 0.569 GB, free: 10.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.5987, allocations: 0 / 0.569 GB, free: 10.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002294/0.5989, allocations: 40.83 kB / 0.569 GB, free: 9.992 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002824/0.5992, allocations: 43.86 kB / 0.5691 GB, free: 9.949 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002002/0.6012, allocations: 1.577 MB / 0.5706 GB, free: 8.238 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001462/0.6014, allocations: 12.09 kB / 0.5706 GB, free: 8.227 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.6014, allocations: 4.625 kB / 0.5706 GB, free: 8.223 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001642/0.6016, allocations: 129.8 kB / 0.5707 GB, free: 8.086 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.26e-05/0.6017, allocations: 15.86 kB / 0.5708 GB, free: 8.07 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.143e-05/0.6017, allocations: 17.19 kB / 0.5708 GB, free: 8.059 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.6017, allocations: 4 kB / 0.5708 GB, free: 8.055 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.6018, allocations: 0 / 0.5708 GB, free: 8.055 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.6018, allocations: 3.938 kB / 0.5708 GB, free: 8.051 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.603, allocations: 0.5612 MB / 0.5713 GB, free: 7.434 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.603, allocations: 0 / 0.5713 GB, free: 7.434 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003141/0.6033, allocations: 44.48 kB / 0.5714 GB, free: 7.391 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001765/0.6035, allocations: 32.84 kB / 0.5714 GB, free: 7.355 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.6035, allocations: 0 / 0.5714 GB, free: 7.355 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.605, allocations: 1.39 MB / 0.5728 GB, free: 5.828 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.605, allocations: 0 / 0.5728 GB, free: 5.828 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007961/0.6058, allocations: 370.2 kB / 0.5731 GB, free: 5.441 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.58e-05/0.6059, allocations: 88.95 kB / 0.5732 GB, free: 5.336 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.953e-05/0.606, allocations: 4 kB / 0.5732 GB, free: 5.332 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.6061, allocations: 4 kB / 0.5732 GB, free: 5.328 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.098e-05/0.6062, allocations: 19.97 kB / 0.5732 GB, free: 5.309 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.6062, allocations: 7.938 kB / 0.5732 GB, free: 5.301 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001017/0.6063, allocations: 103.3 kB / 0.5733 GB, free: 5.199 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6063, allocations: 64 / 0.5733 GB, free: 5.199 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004616/0.6068, allocations: 48 kB / 0.5734 GB, free: 5.152 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001461/0.607, allocations: 103.2 kB / 0.5735 GB, free: 5.043 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000706/0.6077, allocations: 260.8 kB / 0.5737 GB, free: 4.781 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.6077, allocations: 4.062 kB / 0.5737 GB, free: 4.777 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004001/0.6081, allocations: 194.5 kB / 0.5739 GB, free: 4.574 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.6085, allocations: 20.14 kB / 0.5739 GB, free: 4.559 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001161/0.6097, allocations: 0.5466 MB / 0.5745 GB, free: 3.977 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003231/0.61, allocations: 0.7207 MB / 0.5752 GB, free: 3.227 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.86e-05/0.6101, allocations: 15.44 kB / 0.5752 GB, free: 3.211 MB / 394.7 MB Notification: Performance of SimCode: time 2.995e-06/0.6101, allocations: 0 / 0.5752 GB, free: 3.211 MB / 394.7 MB Notification: Performance of Templates: time 0.005618/0.6157, allocations: 2.337 MB / 0.5775 GB, free: 0.8789 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches