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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 113.8 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 183.1 kB / 18.71 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2376/0.2376, allocations: 44.18 MB / 336.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 59.91 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4131/0.4144, allocations: 60.83 MB / 0.5189 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003309/0.4177, allocations: 1.894 MB / 0.5207 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008309/0.4186, allocations: 0.497 MB / 0.5212 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.4187, allocations: 3.906 kB / 0.5212 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.4188, allocations: 26.39 kB / 0.5212 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001/0.4189, allocations: 39.19 kB / 0.5213 GB, free: 2.141 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002383/0.4192, allocations: 38.72 kB / 0.5213 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002597/0.4195, allocations: 149 kB / 0.5215 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000257/0.4197, allocations: 61.61 kB / 0.5215 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.4199, allocations: 62.97 kB / 0.5216 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.42, allocations: 59.48 kB / 0.5216 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.419e-05/0.4201, allocations: 11.44 kB / 0.5217 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.071e-05/0.4201, allocations: 16.72 kB / 0.5217 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.961e-05/0.4201, allocations: 27.53 kB / 0.5217 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.655e-05/0.4202, allocations: 74.48 kB / 0.5218 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002816/0.4205, allocations: 149.4 kB / 0.5219 GB, free: 1.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.4205, allocations: 1.219 kB / 0.5219 GB, free: 1.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.4205, allocations: 4 kB / 0.5219 GB, free: 1.816 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.4206, allocations: 0 / 0.5219 GB, free: 1.816 MB / 382.1 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.0006178/0.4212, allocations: 427.2 kB / 0.5223 GB, free: 1.414 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.4212, allocations: 8.906 kB / 0.5223 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.806e-05/0.4213, allocations: 17 kB / 0.5223 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002286/0.4215, allocations: 209 kB / 0.5225 GB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.4215, allocations: 10.38 kB / 0.5226 GB, free: 1.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.918e-05/0.4216, allocations: 13.61 kB / 0.5226 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002905/0.4219, allocations: 132.7 kB / 0.5227 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.4219, allocations: 1.188 kB / 0.5227 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.4219, allocations: 5.766 kB / 0.5227 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.4219, allocations: 3.062 kB / 0.5227 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002012/0.4222, allocations: 85.77 kB / 0.5228 GB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006794/0.4228, allocations: 474.7 kB / 0.5232 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002711/0.4231, allocations: 117 kB / 0.5233 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.4233, allocations: 61.5 kB / 0.5234 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.4233, allocations: 0.875 kB / 0.5234 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.4233, allocations: 32.61 kB / 0.5234 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.442e-06/0.4234, allocations: 1.062 kB / 0.5234 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001492/0.4249, allocations: 0.812 MB / 0.5242 GB, free: 15.95 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.4249, allocations: 57.84 kB / 0.5243 GB, free: 15.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001477/0.4251, allocations: 138.6 kB / 0.5244 GB, free: 15.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.4251, allocations: 33.7 kB / 0.5245 GB, free: 15.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.984e-05/0.4252, allocations: 110.4 kB / 0.5246 GB, free: 15.62 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.24e-05/0.4252, allocations: 64.81 kB / 0.5246 GB, free: 15.57 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.695e-05/0.4253, allocations: 41.2 kB / 0.5247 GB, free: 15.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.4254, allocations: 326.3 kB / 0.525 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.4256, allocations: 40.34 kB / 0.525 GB, free: 15.21 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.4257, allocations: 83.3 kB / 0.5251 GB, free: 15.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002311/0.426, allocations: 135.3 kB / 0.5252 GB, free: 15.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.426, allocations: 0 / 0.5252 GB, free: 15.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003917/0.4264, allocations: 204 kB / 0.5254 GB, free: 14.97 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.4264, allocations: 14.34 kB / 0.5254 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.4264, allocations: 5.344 kB / 0.5254 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001998/0.4266, allocations: 39.75 kB / 0.5255 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00019/0.4268, allocations: 32.28 kB / 0.5255 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001555/0.4284, allocations: 1.738 MB / 0.5272 GB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.514e-05/0.4285, allocations: 11.34 kB / 0.5272 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.4285, allocations: 6.109 kB / 0.5272 GB, free: 13.27 MB / 398.1 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 0.0001155/0.4286, allocations: 129.3 kB / 0.5273 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.136e-05/0.4287, allocations: 15.39 kB / 0.5274 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.025e-05/0.4287, allocations: 15.73 kB / 0.5274 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.4287, allocations: 6.688 kB / 0.5274 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.4287, allocations: 2.078 kB / 0.5274 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.4287, allocations: 0.5625 kB / 0.5274 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008017/0.4295, allocations: 0.5451 MB / 0.5279 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.4296, allocations: 0 / 0.5279 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001889/0.4298, allocations: 41.39 kB / 0.5279 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001137/0.4299, allocations: 29.42 kB / 0.528 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.4299, allocations: 5.938 kB / 0.528 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001254/0.4312, allocations: 1.483 MB / 0.5294 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.4312, allocations: 1.375 kB / 0.5294 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005461/0.4317, allocations: 345.6 kB / 0.5298 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.611e-05/0.4318, allocations: 90.66 kB / 0.5298 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.157e-05/0.4318, allocations: 5.406 kB / 0.5299 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.4319, allocations: 7.75 kB / 0.5299 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.005e-05/0.432, allocations: 19.97 kB / 0.5299 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.432, allocations: 11.88 kB / 0.5299 GB, free: 10.86 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.942e-05/0.4321, allocations: 105.5 kB / 0.53 GB, free: 10.78 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4321, allocations: 0 / 0.53 GB, free: 10.78 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000359/0.4325, allocations: 37.78 kB / 0.53 GB, free: 10.77 MB / 398.1 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 0.0001162/0.4326, allocations: 101.4 kB / 0.5301 GB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005263/0.4331, allocations: 263.6 kB / 0.5304 GB, free: 10.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4332, allocations: 1.406 kB / 0.5304 GB, free: 10.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002641/0.4334, allocations: 194 kB / 0.5306 GB, free: 10.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003656/0.4338, allocations: 30.23 kB / 0.5306 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007779/0.4346, allocations: 430.8 kB / 0.531 GB, free: 10.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.435, allocations: 0.7175 MB / 0.5317 GB, free: 9.355 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.165e-05/0.435, allocations: 14.31 kB / 0.5317 GB, free: 9.352 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.7e-05/0.4351, allocations: 16.39 kB / 0.5317 GB, free: 9.344 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4351, allocations: 0 / 0.5317 GB, free: 9.344 MB / 398.1 MB Notification: Performance of Templates: time 0.004475/0.4395, allocations: 1.645 MB / 0.5333 GB, free: 8.523 MB / 398.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches