Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 169.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 221.5 MB / 230.7 MB, free: 7.512 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.001056/0.001056, allocations: 93.05 kB / 281.6 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2792/0.2792, allocations: 44.15 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.317e-05/1.324e-05, allocations: 4.219 kB / 444.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1311, allocations: 61.92 MB / 0.4947 GB, free: 1.266 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4064/0.5375, allocations: 86.74 MB / 0.5794 GB, free: 9.781 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/0.5379, allocations: 67.97 kB / 0.5794 GB, free: 9.715 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006945/0.5448, allocations: 2.57 MB / 0.5819 GB, free: 7.145 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5449, allocations: 0 / 0.5819 GB, free: 7.145 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.5449, allocations: 4 kB / 0.5819 GB, free: 7.141 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.0004841/0.5454, allocations: 398.2 kB / 0.5823 GB, free: 6.707 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.5454, allocations: 15.92 kB / 0.5823 GB, free: 6.691 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.871e-05/0.5455, allocations: 15.81 kB / 0.5824 GB, free: 6.676 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002314/0.5457, allocations: 194.9 kB / 0.5825 GB, free: 6.445 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.5458, allocations: 7.953 kB / 0.5826 GB, free: 6.438 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.337e-05/0.5458, allocations: 12 kB / 0.5826 GB, free: 6.426 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001778/0.546, allocations: 63.94 kB / 0.5826 GB, free: 6.363 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001913/0.5462, allocations: 101.6 kB / 0.5827 GB, free: 6.258 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.5462, allocations: 4 kB / 0.5827 GB, free: 6.254 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.5462, allocations: 0 / 0.5827 GB, free: 6.254 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.543e-06/0.5462, allocations: 4 kB / 0.5827 GB, free: 6.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006418/0.5469, allocations: 420.8 kB / 0.5831 GB, free: 5.801 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001788/0.5471, allocations: 102.5 kB / 0.5832 GB, free: 5.691 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.438e-05/0.5472, allocations: 56.8 kB / 0.5833 GB, free: 5.633 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.5472, allocations: 0 / 0.5833 GB, free: 5.633 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.5472, allocations: 34.56 kB / 0.5833 GB, free: 5.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 1.092e-06/0.5472, allocations: 0 / 0.5833 GB, free: 5.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.001248/0.5485, allocations: 0.7015 MB / 0.584 GB, free: 4.797 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.5485, allocations: 63.19 kB / 0.5841 GB, free: 4.727 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.126e-05/0.5486, allocations: 111.2 kB / 0.5842 GB, free: 4.613 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.5487, allocations: 26.45 kB / 0.5842 GB, free: 4.582 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.312e-05/0.5487, allocations: 112.4 kB / 0.5843 GB, free: 4.465 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.291e-05/0.5488, allocations: 70.95 kB / 0.5844 GB, free: 4.395 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.803e-06/0.5488, allocations: 0 / 0.5844 GB, free: 4.395 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.5489, allocations: 322.8 kB / 0.5847 GB, free: 4.07 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.663e-05/0.549, allocations: 28.38 kB / 0.5847 GB, free: 4.039 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.505e-05/0.5491, allocations: 67.98 kB / 0.5848 GB, free: 3.961 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.332e-05/0.5492, allocations: 43.98 kB / 0.5848 GB, free: 3.918 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.5492, allocations: 7.938 kB / 0.5848 GB, free: 3.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002906/0.5495, allocations: 181.2 kB / 0.585 GB, free: 3.727 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.5495, allocations: 4 kB / 0.585 GB, free: 3.723 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.5495, allocations: 0 / 0.585 GB, free: 3.723 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001464/0.5497, allocations: 36.84 kB / 0.585 GB, free: 3.684 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/0.5499, allocations: 35.97 kB / 0.5851 GB, free: 3.648 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001448/0.5513, allocations: 1.498 MB / 0.5865 GB, free: 2.039 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.291e-05/0.5514, allocations: 4.031 kB / 0.5865 GB, free: 2.035 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.5514, allocations: 8.062 kB / 0.5865 GB, free: 2.027 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 () * 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 9.777e-05/0.5515, allocations: 112.9 kB / 0.5866 GB, free: 1.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.422e-05/0.5516, allocations: 7.906 kB / 0.5867 GB, free: 1.902 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.348e-05/0.5516, allocations: 16.75 kB / 0.5867 GB, free: 1.883 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.5516, allocations: 0 / 0.5867 GB, free: 1.883 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.5517, allocations: 4 kB / 0.5867 GB, free: 1.879 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.5517, allocations: 3.984 kB / 0.5867 GB, free: 1.875 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007148/0.5524, allocations: 0.4976 MB / 0.5872 GB, free: 1.328 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.5524, allocations: 0 / 0.5872 GB, free: 1.328 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001678/0.5526, allocations: 39.92 kB / 0.5872 GB, free: 1.289 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.966e-05/0.5527, allocations: 28.84 kB / 0.5872 GB, free: 1.258 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.5527, allocations: 4.031 kB / 0.5872 GB, free: 1.254 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001024/0.5537, allocations: 1.311 MB / 0.5885 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.5538, allocations: 64 / 0.5885 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000407/0.5542, allocations: 331.1 kB / 0.5888 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.984e-05/0.5542, allocations: 88.95 kB / 0.5889 GB, free: 15.37 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.753e-05/0.5543, allocations: 4 kB / 0.5889 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.872e-05/0.5544, allocations: 4 kB / 0.5889 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.972e-05/0.5544, allocations: 12.05 kB / 0.5889 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.5544, allocations: 15.92 kB / 0.5889 GB, free: 15.33 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.619e-05/0.5545, allocations: 91.28 kB / 0.589 GB, free: 15.24 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5545, allocations: 0 / 0.589 GB, free: 15.24 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003197/0.5548, allocations: 32 kB / 0.5891 GB, free: 15.21 MB / 410.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 () * 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.0001481/0.555, allocations: 96.25 kB / 0.5892 GB, free: 15.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004007/0.5554, allocations: 233.6 kB / 0.5894 GB, free: 14.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.5554, allocations: 0 / 0.5894 GB, free: 14.87 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002149/0.5556, allocations: 181.6 kB / 0.5896 GB, free: 14.68 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002414/0.5559, allocations: 9.875 kB / 0.5896 GB, free: 14.68 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006146/0.5565, allocations: 325.2 kB / 0.5899 GB, free: 14.33 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/0.5568, allocations: 0.7282 MB / 0.5906 GB, free: 13.58 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.917e-05/0.5569, allocations: 5.219 kB / 0.5906 GB, free: 13.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.212e-05/0.5569, allocations: 19.38 kB / 0.5906 GB, free: 13.55 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5569, allocations: 0 / 0.5906 GB, free: 13.55 MB / 410.7 MB Notification: Performance of Templates: time 0.0038/0.5607, allocations: 1.326 MB / 0.5919 GB, free: 12.24 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches