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.001149/0.001149, allocations: 109.9 kB / 18.45 MB, free: 4.641 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.001161/0.001161, allocations: 190.1 kB / 19.39 MB, free: 3.711 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.38/1.38, allocations: 222.9 MB / 243.1 MB, free: 15.14 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.2111/0.2111, allocations: 44.18 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001554, allocations: 63.89 kB / 471.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4253/0.4269, allocations: 60.82 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002916/0.4298, allocations: 1.901 MB / 0.5214 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007105/0.4305, allocations: 0.498 MB / 0.5219 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.535e-05/0.4306, allocations: 2.188 kB / 0.5219 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.4308, allocations: 18.56 kB / 0.5219 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.429e-05/0.4309, allocations: 44.06 kB / 0.522 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001666/0.431, allocations: 30.77 kB / 0.522 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001773/0.4312, allocations: 145 kB / 0.5221 GB, free: 1.797 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.4314, allocations: 65.42 kB / 0.5222 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.845e-05/0.4315, allocations: 63.03 kB / 0.5223 GB, free: 1.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.4316, allocations: 66.64 kB / 0.5223 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.068e-05/0.4316, allocations: 11.91 kB / 0.5223 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.771e-05/0.4317, allocations: 12.66 kB / 0.5223 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.086e-05/0.4317, allocations: 28.22 kB / 0.5224 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.789e-05/0.4318, allocations: 70.39 kB / 0.5224 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002728/0.432, allocations: 155.8 kB / 0.5226 GB, free: 1.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.4321, allocations: 1.062 kB / 0.5226 GB, free: 1.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.4321, allocations: 0 / 0.5226 GB, free: 1.566 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.4321, allocations: 0 / 0.5226 GB, free: 1.566 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.0005945/0.4327, allocations: 435.8 kB / 0.523 GB, free: 1.156 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.4327, allocations: 8.062 kB / 0.523 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.28e-05/0.4328, allocations: 12.58 kB / 0.523 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002581/0.4331, allocations: 218.1 kB / 0.5232 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.4331, allocations: 9.125 kB / 0.5232 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.447e-05/0.4331, allocations: 13.25 kB / 0.5232 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003012/0.4334, allocations: 130 kB / 0.5234 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.4335, allocations: 1.062 kB / 0.5234 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.116e-05/0.4335, allocations: 6.281 kB / 0.5234 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.4335, allocations: 3.062 kB / 0.5234 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002142/0.4337, allocations: 80.52 kB / 0.5235 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007705/0.4345, allocations: 474.7 kB / 0.5239 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.4348, allocations: 117.8 kB / 0.524 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001293/0.4349, allocations: 60.31 kB / 0.5241 GB, free: 368 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.4349, allocations: 6.266 kB / 0.5241 GB, free: 364 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.77e-05/0.435, allocations: 36.42 kB / 0.5241 GB, free: 320 kB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/0.435, allocations: 0 / 0.5241 GB, free: 320 kB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001482/0.4364, allocations: 0.8077 MB / 0.5249 GB, free: 15.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.08e-05/0.4365, allocations: 53.22 kB / 0.525 GB, free: 15.63 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001308/0.4366, allocations: 138.6 kB / 0.5251 GB, free: 15.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.4367, allocations: 35.45 kB / 0.5251 GB, free: 15.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.455e-05/0.4367, allocations: 111.6 kB / 0.5252 GB, free: 15.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.018e-05/0.4368, allocations: 74.84 kB / 0.5253 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.215e-05/0.4369, allocations: 36.17 kB / 0.5253 GB, free: 15.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.437, allocations: 327.1 kB / 0.5257 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.941e-05/0.4371, allocations: 45.28 kB / 0.5257 GB, free: 14.95 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/0.4372, allocations: 86.77 kB / 0.5258 GB, free: 14.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002428/0.4375, allocations: 130.6 kB / 0.5259 GB, free: 14.81 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.4375, allocations: 0 / 0.5259 GB, free: 14.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.00042/0.4379, allocations: 216.5 kB / 0.5261 GB, free: 14.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.4379, allocations: 6.125 kB / 0.5261 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.438, allocations: 3.938 kB / 0.5261 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001616/0.4381, allocations: 41.36 kB / 0.5262 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001727/0.4383, allocations: 32.3 kB / 0.5262 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001538/0.4399, allocations: 1.739 MB / 0.5279 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.51e-05/0.44, allocations: 12.2 kB / 0.5279 GB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.44, allocations: 7.875 kB / 0.5279 GB, free: 13 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.0001193/0.4401, allocations: 126.6 kB / 0.528 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.858e-05/0.4402, allocations: 13.91 kB / 0.528 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.823e-05/0.4402, allocations: 21.44 kB / 0.5281 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.4402, allocations: 1.312 kB / 0.5281 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.4402, allocations: 3.938 kB / 0.5281 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.411e-05/0.4403, allocations: 86.66 kB / 0.5281 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.4403, allocations: 10.11 kB / 0.5282 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.708e-05/0.4404, allocations: 2.969 kB / 0.5282 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.464e-05/0.4405, allocations: 17.59 kB / 0.5282 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006108/0.4411, allocations: 295.9 kB / 0.5285 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004861/0.4416, allocations: 404.2 kB / 0.5288 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000116/0.4417, allocations: 59.12 kB / 0.5289 GB, free: 12.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.005e-05/0.4418, allocations: 105.3 kB / 0.529 GB, free: 12.18 MB / 398.1 MB Notification: Performance of Backend: time 4.71e-07/0.4418, allocations: 0 / 0.529 GB, free: 12.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006746/0.4425, allocations: 291.5 kB / 0.5293 GB, free: 11.96 MB / 398.1 MB Notification: Performance of SimCode: time 0.0009368/0.4434, allocations: 0.8958 MB / 0.5302 GB, free: 11.17 MB / 398.1 MB Notification: Performance of Templates: time 0.005323/0.4488, allocations: 1.752 MB / 0.5319 GB, free: 10.45 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