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.001137/0.001137, allocations: 113.8 kB / 18.46 MB, free: 4.617 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.001183/0.001184, allocations: 186.1 kB / 19.39 MB, free: 3.695 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.335/1.335, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.204/0.204, allocations: 44.19 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 63.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3626/0.3638, allocations: 60.82 MB / 0.5195 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003167/0.367, allocations: 1.905 MB / 0.5214 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008483/0.3679, allocations: 0.4971 MB / 0.5219 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.953e-05/0.368, allocations: 7.344 kB / 0.5219 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001353/0.3682, allocations: 19.06 kB / 0.5219 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.988e-05/0.3683, allocations: 42.22 kB / 0.522 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001987/0.3685, allocations: 35.92 kB / 0.522 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002431/0.3687, allocations: 148.4 kB / 0.5221 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000258/0.369, allocations: 57.34 kB / 0.5222 GB, free: 1.762 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001737/0.3692, allocations: 64 kB / 0.5223 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.3694, allocations: 62.97 kB / 0.5223 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.668e-05/0.3695, allocations: 18.97 kB / 0.5223 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.634e-05/0.3695, allocations: 12 kB / 0.5223 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.285e-05/0.3696, allocations: 25.5 kB / 0.5224 GB, free: 1.676 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.3697, allocations: 66.55 kB / 0.5224 GB, free: 1.637 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003374/0.37, allocations: 153 kB / 0.5226 GB, free: 1.578 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.37, allocations: 0.6562 kB / 0.5226 GB, free: 1.578 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.298e-06/0.37, allocations: 0 / 0.5226 GB, free: 1.578 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.738e-05/0.3701, allocations: 8.844 kB / 0.5226 GB, free: 1.57 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.0007969/0.3709, allocations: 434.8 kB / 0.523 GB, free: 1.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.138e-05/0.3709, allocations: 7.906 kB / 0.523 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.747e-05/0.371, allocations: 16.47 kB / 0.523 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003938/0.3714, allocations: 205.5 kB / 0.5232 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.608e-05/0.3715, allocations: 9.906 kB / 0.5232 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.404e-05/0.3715, allocations: 13.41 kB / 0.5232 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003755/0.3719, allocations: 129.8 kB / 0.5234 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.3719, allocations: 1.547 kB / 0.5234 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.372, allocations: 5.188 kB / 0.5234 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.372, allocations: 7.219 kB / 0.5234 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000235/0.3722, allocations: 80.78 kB / 0.5235 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007746/0.373, allocations: 471 kB / 0.5239 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002544/0.3733, allocations: 118.2 kB / 0.524 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001395/0.3734, allocations: 60.88 kB / 0.5241 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.3734, allocations: 1.469 kB / 0.5241 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.3735, allocations: 40.77 kB / 0.5241 GB, free: 332 kB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.283e-06/0.3735, allocations: 0 / 0.5241 GB, free: 332 kB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001615/0.3751, allocations: 0.8036 MB / 0.5249 GB, free: 15.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/0.3752, allocations: 53.97 kB / 0.525 GB, free: 15.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001684/0.3753, allocations: 142.4 kB / 0.5251 GB, free: 15.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.533e-05/0.3754, allocations: 26.73 kB / 0.5251 GB, free: 15.49 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.9e-05/0.3755, allocations: 114.6 kB / 0.5252 GB, free: 15.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.871e-05/0.3756, allocations: 66.11 kB / 0.5253 GB, free: 15.33 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.068e-05/0.3756, allocations: 39.83 kB / 0.5253 GB, free: 15.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.3758, allocations: 321.4 kB / 0.5256 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.3759, allocations: 45.44 kB / 0.5257 GB, free: 14.97 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.376, allocations: 82.53 kB / 0.5258 GB, free: 14.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002451/0.3763, allocations: 138.6 kB / 0.5259 GB, free: 14.83 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3763, allocations: 1.812 kB / 0.5259 GB, free: 14.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003969/0.3767, allocations: 199.7 kB / 0.5261 GB, free: 14.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.3767, allocations: 14.75 kB / 0.5261 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.3767, allocations: 7.875 kB / 0.5261 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001874/0.3769, allocations: 40.77 kB / 0.5261 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.3771, allocations: 40.44 kB / 0.5262 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001748/0.3789, allocations: 1.738 MB / 0.5279 GB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.9e-05/0.379, allocations: 3.859 kB / 0.5279 GB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.379, allocations: 9.672 kB / 0.5279 GB, free: 13.03 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.000129/0.3791, allocations: 125.1 kB / 0.528 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.06e-05/0.3792, allocations: 13.34 kB / 0.528 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.426e-05/0.3792, allocations: 21.77 kB / 0.528 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.3792, allocations: 4.656 kB / 0.528 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.3793, allocations: 4.844 kB / 0.528 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.089e-05/0.3793, allocations: 85.38 kB / 0.5281 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.073e-05/0.3793, allocations: 6.281 kB / 0.5281 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.657e-05/0.3794, allocations: 3.312 kB / 0.5281 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.305e-05/0.3795, allocations: 17.06 kB / 0.5282 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006187/0.3801, allocations: 301.2 kB / 0.5284 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004954/0.3806, allocations: 397 kB / 0.5288 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001179/0.3808, allocations: 57 kB / 0.5289 GB, free: 12.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.657e-05/0.3809, allocations: 105.7 kB / 0.529 GB, free: 12.21 MB / 398.1 MB Notification: Performance of Backend: time 2.3e-07/0.3809, allocations: 4 kB / 0.529 GB, free: 12.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007344/0.3816, allocations: 290.8 kB / 0.5293 GB, free: 11.99 MB / 398.1 MB Notification: Performance of SimCode: time 0.00105/0.3827, allocations: 0.8971 MB / 0.5301 GB, free: 11.2 MB / 398.1 MB Notification: Performance of Templates: time 0.005273/0.388, allocations: 1.758 MB / 0.5318 GB, free: 10.48 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/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