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.001056/0.001056, allocations: 177 kB / 17.06 MB, free: 5.094 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.255/1.255, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008215/0.0008214, allocations: 94.84 kB / 292.2 MB, free: 10.93 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.3554/0.3554, allocations: 44.22 MB / 387.5 MB, free: 38.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003329/0.000333, allocations: 8 kB / 459.9 MB, free: 1.543 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3322, allocations: 61.9 MB / 0.5096 GB, free: 37.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.108/0.4402, allocations: 87.47 MB / 0.595 GB, free: 7.672 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001962/0.4404, allocations: 75.94 kB / 0.595 GB, free: 7.598 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006275/0.4467, allocations: 2.588 MB / 0.5976 GB, free: 5.004 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.4467, allocations: 0 / 0.5976 GB, free: 5.004 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.4468, allocations: 4 kB / 0.5976 GB, free: 5 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004258/0.4472, allocations: 414.8 kB / 0.598 GB, free: 4.547 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.4472, allocations: 8.562 kB / 0.598 GB, free: 4.539 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.457e-05/0.4473, allocations: 15.81 kB / 0.598 GB, free: 4.523 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001814/0.4475, allocations: 203.8 kB / 0.5982 GB, free: 4.285 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.4475, allocations: 15.95 kB / 0.5982 GB, free: 4.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.257e-05/0.4475, allocations: 12 kB / 0.5982 GB, free: 4.258 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002397/0.4478, allocations: 136 kB / 0.5983 GB, free: 4.121 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.4478, allocations: 4 kB / 0.5984 GB, free: 4.117 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.4478, allocations: 4 kB / 0.5984 GB, free: 4.113 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.4478, allocations: 4 kB / 0.5984 GB, free: 4.109 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001773/0.448, allocations: 87.89 kB / 0.5984 GB, free: 4.023 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006002/0.4486, allocations: 464.2 kB / 0.5989 GB, free: 3.52 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002065/0.4488, allocations: 138.3 kB / 0.599 GB, free: 3.375 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.4489, allocations: 0 / 0.599 GB, free: 3.375 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.4489, allocations: 30.56 kB / 0.599 GB, free: 3.336 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 8.92e-07/0.4489, allocations: 0 / 0.599 GB, free: 3.336 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.001334/0.4502, allocations: 0.8158 MB / 0.5998 GB, free: 2.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.996e-05/0.4503, allocations: 55.41 kB / 0.5999 GB, free: 2.363 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.4504, allocations: 131.7 kB / 0.6 GB, free: 2.227 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.4504, allocations: 29.7 kB / 0.6 GB, free: 2.191 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.682e-05/0.4505, allocations: 112.3 kB / 0.6002 GB, free: 2.078 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.895e-05/0.4505, allocations: 70.94 kB / 0.6002 GB, free: 2.008 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.825e-06/0.4506, allocations: 4 kB / 0.6002 GB, free: 2.004 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.949e-05/0.4507, allocations: 322.8 kB / 0.6005 GB, free: 1.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.538e-05/0.4508, allocations: 48.34 kB / 0.6006 GB, free: 1.629 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001089/0.4509, allocations: 76.16 kB / 0.6007 GB, free: 1.543 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001056/0.451, allocations: 56 kB / 0.6007 GB, free: 1.488 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.451, allocations: 0 / 0.6007 GB, free: 1.488 MB / 410.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003343/0.4513, allocations: 214.2 kB / 0.6009 GB, free: 1.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.4514, allocations: 8 kB / 0.6009 GB, free: 1.262 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.4514, allocations: 0 / 0.6009 GB, free: 1.262 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001419/0.4515, allocations: 40.83 kB / 0.601 GB, free: 1.219 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.4517, allocations: 35.92 kB / 0.601 GB, free: 1.184 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00124/0.4529, allocations: 1.573 MB / 0.6025 GB, free: 15.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.162e-05/0.453, allocations: 4 kB / 0.6025 GB, free: 15.47 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.453, allocations: 8 kB / 0.6025 GB, free: 15.46 MB / 426.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.0001028/0.4532, allocations: 129.9 kB / 0.6027 GB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.37e-05/0.4532, allocations: 15.81 kB / 0.6027 GB, free: 15.31 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.746e-05/0.4532, allocations: 21.12 kB / 0.6027 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-06/0.4532, allocations: 0 / 0.6027 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.4533, allocations: 4 kB / 0.6027 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.4533, allocations: 7.984 kB / 0.6027 GB, free: 15.28 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006818/0.454, allocations: 0.56 MB / 0.6033 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.454, allocations: 0 / 0.6033 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.4541, allocations: 35.97 kB / 0.6033 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.005e-05/0.4542, allocations: 36.81 kB / 0.6033 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.4543, allocations: 8 kB / 0.6033 GB, free: 14.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009109/0.4552, allocations: 1.375 MB / 0.6047 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.4552, allocations: 4.031 kB / 0.6047 GB, free: 13.06 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004486/0.4556, allocations: 369.3 kB / 0.605 GB, free: 12.68 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.218e-05/0.4557, allocations: 81.02 kB / 0.6051 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.678e-05/0.4557, allocations: 7.953 kB / 0.6051 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.099e-05/0.4558, allocations: 11.94 kB / 0.6051 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.346e-05/0.4559, allocations: 11.97 kB / 0.6051 GB, free: 12.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.4559, allocations: 12 kB / 0.6052 GB, free: 12.54 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.65e-05/0.456, allocations: 103.3 kB / 0.6053 GB, free: 12.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.456, allocations: 0 / 0.6053 GB, free: 12.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002982/0.4563, allocations: 44 kB / 0.6053 GB, free: 12.39 MB / 426.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.0001078/0.4564, allocations: 107.3 kB / 0.6054 GB, free: 12.28 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004308/0.4568, allocations: 260.8 kB / 0.6056 GB, free: 12.01 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.4568, allocations: 0 / 0.6056 GB, free: 12.01 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002337/0.4571, allocations: 202.6 kB / 0.6058 GB, free: 11.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002522/0.4573, allocations: 20.31 kB / 0.6059 GB, free: 11.78 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000698/0.458, allocations: 0.5213 MB / 0.6064 GB, free: 11.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002393/0.4583, allocations: 0.7246 MB / 0.6071 GB, free: 10.47 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 4.968e-05/0.4584, allocations: 9.422 kB / 0.6071 GB, free: 10.46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.936e-05/0.4584, allocations: 15.44 kB / 0.6071 GB, free: 10.45 MB / 426.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4584, allocations: 0 / 0.6071 GB, free: 10.45 MB / 426.7 MB Notification: Performance of Templates: time 0.003609/0.462, allocations: 1.45 MB / 0.6085 GB, free: 9.008 MB / 426.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