Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 174.1 kB / 17.41 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 225.7 MB / 243.9 MB, free: 8.488 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009639/0.000964, allocations: 103.7 kB / 295.1 MB, free: 9.5 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3691/0.3691, allocations: 44.33 MB / 390.5 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003206/0.0003207, allocations: 8 kB / 463.1 MB, free: 492 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.3523, allocations: 61.9 MB / 0.5127 GB, free: 38.01 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00175/0.3541, allocations: 1.578 MB / 0.5143 GB, free: 36.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005918/0.3547, allocations: 477.9 kB / 0.5147 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.309e-05/0.3548, allocations: 2.562 kB / 0.5147 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.924e-05/0.3549, allocations: 17.8 kB / 0.5148 GB, free: 36.53 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.867e-05/0.355, allocations: 35.59 kB / 0.5148 GB, free: 36.51 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001653/0.3552, allocations: 35.69 kB / 0.5148 GB, free: 36.48 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001503/0.3553, allocations: 140.2 kB / 0.515 GB, free: 36.41 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.3555, allocations: 53.09 kB / 0.515 GB, free: 36.38 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.843e-05/0.3556, allocations: 53.78 kB / 0.5151 GB, free: 36.36 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.786e-05/0.3557, allocations: 51.03 kB / 0.5151 GB, free: 36.33 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.478e-05/0.3557, allocations: 5.719 kB / 0.5151 GB, free: 36.33 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.108e-05/0.3558, allocations: 8.406 kB / 0.5151 GB, free: 36.33 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.605e-05/0.3558, allocations: 25.94 kB / 0.5151 GB, free: 36.31 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.329e-05/0.3559, allocations: 90.42 kB / 0.5152 GB, free: 36.24 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001378/0.356, allocations: 137.2 kB / 0.5154 GB, free: 36.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.356, allocations: 4 kB / 0.5154 GB, free: 36.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.356, allocations: 0 / 0.5154 GB, free: 36.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.356, allocations: 4 kB / 0.5154 GB, free: 36.2 MB / 378.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.0004499/0.3565, allocations: 409.3 kB / 0.5158 GB, free: 35.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.3565, allocations: 8.969 kB / 0.5158 GB, free: 35.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.555e-05/0.3566, allocations: 13.59 kB / 0.5158 GB, free: 35.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.3567, allocations: 204.2 kB / 0.516 GB, free: 35.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.3568, allocations: 9.938 kB / 0.516 GB, free: 35.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.18e-05/0.3568, allocations: 16.59 kB / 0.516 GB, free: 35.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002369/0.357, allocations: 134.7 kB / 0.5161 GB, free: 35.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.3571, allocations: 0 / 0.5161 GB, free: 35.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.3571, allocations: 7.938 kB / 0.5161 GB, free: 35.49 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.3571, allocations: 5.375 kB / 0.5161 GB, free: 35.49 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.3573, allocations: 86.3 kB / 0.5162 GB, free: 35.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006098/0.3579, allocations: 471.4 kB / 0.5167 GB, free: 35.1 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/0.3581, allocations: 123.6 kB / 0.5168 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.3582, allocations: 61.3 kB / 0.5169 GB, free: 35.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.3582, allocations: 1.375 kB / 0.5169 GB, free: 35.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.914e-05/0.3583, allocations: 32.28 kB / 0.5169 GB, free: 34.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.162e-06/0.3583, allocations: 0 / 0.5169 GB, free: 34.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001277/0.3596, allocations: 0.8218 MB / 0.5177 GB, free: 34.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.148e-05/0.3596, allocations: 58.38 kB / 0.5177 GB, free: 34.28 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.844e-05/0.3597, allocations: 142 kB / 0.5179 GB, free: 34.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.108e-05/0.3597, allocations: 29.7 kB / 0.5179 GB, free: 34.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.722e-05/0.3598, allocations: 113.9 kB / 0.518 GB, free: 34.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.629e-05/0.3598, allocations: 72.3 kB / 0.5181 GB, free: 33.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.023e-06/0.3598, allocations: 2.625 kB / 0.5181 GB, free: 33.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.185e-05/0.3599, allocations: 324.8 kB / 0.5184 GB, free: 33.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.557e-05/0.36, allocations: 41.72 kB / 0.5184 GB, free: 33.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.501e-05/0.3601, allocations: 81.12 kB / 0.5185 GB, free: 33.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001842/0.3603, allocations: 137 kB / 0.5186 GB, free: 33.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.71e-07/0.3603, allocations: 0 / 0.5186 GB, free: 33.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003372/0.3606, allocations: 208.4 kB / 0.5188 GB, free: 33.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.3606, allocations: 4.531 kB / 0.5188 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3606, allocations: 5.031 kB / 0.5189 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001591/0.3608, allocations: 40.31 kB / 0.5189 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.361, allocations: 39.55 kB / 0.5189 GB, free: 33.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001049/0.3621, allocations: 1.552 MB / 0.5204 GB, free: 31.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.414e-05/0.3621, allocations: 12.31 kB / 0.5205 GB, free: 31.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.3622, allocations: 5.359 kB / 0.5205 GB, free: 31.88 MB / 378.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.547e-05/0.3623, allocations: 131.1 kB / 0.5206 GB, free: 31.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.072e-05/0.3623, allocations: 13.84 kB / 0.5206 GB, free: 31.74 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.493e-05/0.3623, allocations: 21.91 kB / 0.5206 GB, free: 31.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.3623, allocations: 9.688 kB / 0.5206 GB, free: 31.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3623, allocations: 2.641 kB / 0.5206 GB, free: 31.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.3624, allocations: 4.703 kB / 0.5206 GB, free: 31.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006345/0.363, allocations: 0.5557 MB / 0.5212 GB, free: 31.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.363, allocations: 4.031 kB / 0.5212 GB, free: 31.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.3632, allocations: 39.81 kB / 0.5212 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.379e-05/0.3633, allocations: 32.66 kB / 0.5213 GB, free: 31.26 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.3633, allocations: 0.6562 kB / 0.5213 GB, free: 31.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007206/0.364, allocations: 1.376 MB / 0.5226 GB, free: 29.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.364, allocations: 3.938 kB / 0.5226 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004079/0.3644, allocations: 355.8 kB / 0.5229 GB, free: 29.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.967e-05/0.3645, allocations: 85.36 kB / 0.523 GB, free: 29.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.819e-05/0.3645, allocations: 7.219 kB / 0.523 GB, free: 29.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.885e-05/0.3646, allocations: 8.203 kB / 0.523 GB, free: 29.56 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.51e-05/0.3647, allocations: 10.72 kB / 0.523 GB, free: 29.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.3647, allocations: 3.484 kB / 0.523 GB, free: 29.56 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.278e-05/0.3647, allocations: 114.2 kB / 0.5232 GB, free: 29.47 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3647, allocations: 0 / 0.5232 GB, free: 29.47 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002769/0.365, allocations: 38.84 kB / 0.5232 GB, free: 29.46 MB / 378.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 9.291e-05/0.3651, allocations: 108.4 kB / 0.5233 GB, free: 29.37 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004173/0.3655, allocations: 259.3 kB / 0.5235 GB, free: 29.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3656, allocations: 4 kB / 0.5235 GB, free: 29.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002039/0.3658, allocations: 198.7 kB / 0.5237 GB, free: 29.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003179/0.3661, allocations: 24.77 kB / 0.5238 GB, free: 29.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006683/0.3668, allocations: 0.5389 MB / 0.5243 GB, free: 28.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001486/0.3669, allocations: 0.717 MB / 0.525 GB, free: 27.96 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.694e-05/0.367, allocations: 12.7 kB / 0.525 GB, free: 27.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.535e-05/0.367, allocations: 20.69 kB / 0.525 GB, free: 27.95 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.367, allocations: 0 / 0.525 GB, free: 27.95 MB / 378.7 MB Notification: Performance of Templates: time 0.003657/0.3707, allocations: 1.49 MB / 0.5265 GB, free: 27.82 MB / 378.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