Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001729/0.001729, allocations: 107.6 kB / 21.19 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001793/0.001793, allocations: 213.1 kB / 24.48 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.546/1.546, allocations: 230.6 MB / 258.2 MB, free: 7.727 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2473/0.2473, allocations: 46.96 MB / 361.6 MB, free: 4.004 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003185/0.003185, allocations: 71.89 kB / 0.4973 GB, free: 7.191 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4264/0.4296, allocations: 66.03 MB / 0.5618 GB, free: 4.121 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003511/0.4331, allocations: 1.858 MB / 0.5636 GB, free: 2.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.4342, allocations: 0.527 MB / 0.5641 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.4343, allocations: 7.938 kB / 0.5641 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001463/0.4344, allocations: 19.8 kB / 0.5642 GB, free: 1.691 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.4345, allocations: 43.62 kB / 0.5642 GB, free: 1.648 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002424/0.4347, allocations: 47.89 kB / 0.5642 GB, free: 1.602 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002117/0.435, allocations: 151.3 kB / 0.5644 GB, free: 1.453 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.4351, allocations: 49.81 kB / 0.5644 GB, free: 1.398 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001698/0.4353, allocations: 71.77 kB / 0.5645 GB, free: 1.328 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001255/0.4354, allocations: 59.7 kB / 0.5646 GB, free: 1.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.548e-05/0.4355, allocations: 12 kB / 0.5646 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.64e-05/0.4355, allocations: 20 kB / 0.5646 GB, free: 1.238 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.555e-05/0.4355, allocations: 23.92 kB / 0.5646 GB, free: 1.215 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.001e-05/0.4356, allocations: 59.73 kB / 0.5647 GB, free: 1.156 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002519/0.4359, allocations: 165.7 kB / 0.5648 GB, free: 1 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.4359, allocations: 0 / 0.5648 GB, free: 1 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4359, allocations: 0 / 0.5648 GB, free: 1 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.4359, allocations: 0 / 0.5648 GB, free: 1 MB / 398.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.0006361/0.4365, allocations: 369.7 kB / 0.5652 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.4366, allocations: 8.031 kB / 0.5652 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001821/0.4367, allocations: 24.83 kB / 0.5652 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/0.437, allocations: 162 kB / 0.5654 GB, free: 408 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.437, allocations: 12.38 kB / 0.5654 GB, free: 396 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.768e-05/0.4371, allocations: 16.33 kB / 0.5654 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002845/0.4373, allocations: 134.3 kB / 0.5655 GB, free: 240 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.4374, allocations: 0 / 0.5655 GB, free: 240 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.4374, allocations: 4 kB / 0.5655 GB, free: 236 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.4374, allocations: 4 kB / 0.5655 GB, free: 232 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001935/0.4376, allocations: 91.91 kB / 0.5656 GB, free: 140 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006993/0.4383, allocations: 372.1 kB / 0.566 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002291/0.4385, allocations: 106.5 kB / 0.5661 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.4386, allocations: 56.77 kB / 0.5661 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.4386, allocations: 7.938 kB / 0.5661 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.4387, allocations: 30.56 kB / 0.5662 GB, free: 15.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.132e-06/0.4387, allocations: 0 / 0.5662 GB, free: 15.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001608/0.4403, allocations: 0.652 MB / 0.5668 GB, free: 14.81 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/0.4403, allocations: 51.41 kB / 0.5669 GB, free: 14.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001634/0.4405, allocations: 132.6 kB / 0.567 GB, free: 14.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.323e-05/0.4405, allocations: 29.7 kB / 0.567 GB, free: 14.58 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.4406, allocations: 116.4 kB / 0.5671 GB, free: 14.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.168e-05/0.4407, allocations: 75.31 kB / 0.5672 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.226e-05/0.4408, allocations: 33.72 kB / 0.5672 GB, free: 14.35 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.441, allocations: 322.8 kB / 0.5675 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/0.4411, allocations: 39.97 kB / 0.5676 GB, free: 13.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001387/0.4412, allocations: 86.22 kB / 0.5677 GB, free: 13.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002433/0.4414, allocations: 131.2 kB / 0.5678 GB, free: 13.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.4414, allocations: 4 kB / 0.5678 GB, free: 13.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004195/0.4419, allocations: 198.3 kB / 0.568 GB, free: 13.54 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.4419, allocations: 4 kB / 0.568 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.4419, allocations: 4 kB / 0.568 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002122/0.4421, allocations: 48.8 kB / 0.568 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.4423, allocations: 31.98 kB / 0.5681 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001748/0.4441, allocations: 1.614 MB / 0.5696 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.446e-05/0.4441, allocations: 15.91 kB / 0.5696 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.4442, allocations: 4 kB / 0.5697 GB, free: 11.71 MB / 414.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.0001612/0.4443, allocations: 129.9 kB / 0.5698 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.839e-05/0.4444, allocations: 15.94 kB / 0.5698 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.286e-05/0.4444, allocations: 16.78 kB / 0.5698 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.4444, allocations: 4 kB / 0.5698 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.4444, allocations: 0 / 0.5698 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.4444, allocations: 3.938 kB / 0.5698 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000778/0.4452, allocations: 483.4 kB / 0.5703 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4452, allocations: 4.031 kB / 0.5703 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001919/0.4454, allocations: 39.92 kB / 0.5703 GB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001132/0.4455, allocations: 32.83 kB / 0.5703 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.4455, allocations: 4 kB / 0.5704 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001198/0.4467, allocations: 1.351 MB / 0.5717 GB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.4467, allocations: 0 / 0.5717 GB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005102/0.4472, allocations: 351.5 kB / 0.572 GB, free: 9.121 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.075e-05/0.4473, allocations: 15.92 kB / 0.572 GB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.4473, allocations: 0 / 0.572 GB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.933e-05/0.4474, allocations: 8 kB / 0.572 GB, free: 9.098 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.697e-05/0.4474, allocations: 15.97 kB / 0.572 GB, free: 9.082 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.4474, allocations: 4 kB / 0.572 GB, free: 9.078 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.518e-05/0.4475, allocations: 95.27 kB / 0.5721 GB, free: 8.984 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4475, allocations: 0 / 0.5721 GB, free: 8.984 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003327/0.4478, allocations: 44 kB / 0.5722 GB, free: 8.941 MB / 414.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.0001312/0.448, allocations: 99.31 kB / 0.5723 GB, free: 8.836 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005329/0.4485, allocations: 253.6 kB / 0.5725 GB, free: 8.578 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4485, allocations: 0 / 0.5725 GB, free: 8.578 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002657/0.4488, allocations: 190.5 kB / 0.5727 GB, free: 8.379 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000335/0.4491, allocations: 28.05 kB / 0.5727 GB, free: 8.352 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008834/0.45, allocations: 471.1 kB / 0.5732 GB, free: 7.859 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001189/0.4501, allocations: 111.7 kB / 0.5733 GB, free: 7.727 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.578e-05/0.4501, allocations: 15.44 kB / 0.5733 GB, free: 7.711 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4501, allocations: 0 / 0.5733 GB, free: 7.711 MB / 414.1 MB Notification: Performance of Templates: time 0.004858/0.455, allocations: 2.477 MB / 0.5757 GB, free: 5.238 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.486253442009911]