Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001422/0.001422, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001557/0.001557, allocations: 214.6 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.555/1.555, allocations: 230.5 MB / 257.4 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2404/0.2404, allocations: 46.95 MB / 360.8 MB, free: 3.938 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002455/0.002455, allocations: 83.88 kB / 0.4966 GB, free: 7.066 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4121/0.4146, allocations: 66.09 MB / 0.5612 GB, free: 3.965 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003505/0.4181, allocations: 1.864 MB / 0.563 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001048/0.4191, allocations: 0.527 MB / 0.5635 GB, free: 1.562 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.4192, allocations: 7.938 kB / 0.5635 GB, free: 1.555 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000133/0.4194, allocations: 23.78 kB / 0.5635 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001067/0.4195, allocations: 43.62 kB / 0.5636 GB, free: 1.488 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002639/0.4197, allocations: 47.89 kB / 0.5636 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002175/0.4199, allocations: 151.3 kB / 0.5638 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/0.4201, allocations: 45.83 kB / 0.5638 GB, free: 1.242 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/0.4203, allocations: 67.72 kB / 0.5639 GB, free: 1.176 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001178/0.4204, allocations: 59.69 kB / 0.5639 GB, free: 1.117 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.611e-05/0.4204, allocations: 12 kB / 0.5639 GB, free: 1.105 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.657e-05/0.4205, allocations: 12 kB / 0.5639 GB, free: 1.094 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.286e-05/0.4205, allocations: 23.92 kB / 0.564 GB, free: 1.07 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.659e-05/0.4206, allocations: 63.72 kB / 0.564 GB, free: 1.008 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002414/0.4209, allocations: 157.7 kB / 0.5642 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.4209, allocations: 3.938 kB / 0.5642 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4209, allocations: 0 / 0.5642 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.4209, allocations: 4 kB / 0.5642 GB, free: 0.8516 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.0006336/0.4215, allocations: 361.7 kB / 0.5645 GB, free: 480 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.4215, allocations: 8.031 kB / 0.5645 GB, free: 472 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001499/0.4217, allocations: 24.83 kB / 0.5646 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.422, allocations: 154.2 kB / 0.5647 GB, free: 268 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.422, allocations: 12.36 kB / 0.5647 GB, free: 256 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.232e-05/0.422, allocations: 16.33 kB / 0.5647 GB, free: 240 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002729/0.4223, allocations: 133.8 kB / 0.5649 GB, free: 100 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.4223, allocations: 0 / 0.5649 GB, free: 100 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.881e-05/0.4223, allocations: 4 kB / 0.5649 GB, free: 96 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.4223, allocations: 4 kB / 0.5649 GB, free: 92 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001948/0.4225, allocations: 87.92 kB / 0.565 GB, free: 4 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006924/0.4232, allocations: 368.1 kB / 0.5653 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002415/0.4235, allocations: 110.5 kB / 0.5654 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.4236, allocations: 60.78 kB / 0.5655 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.4236, allocations: 7.875 kB / 0.5655 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.4236, allocations: 34.55 kB / 0.5655 GB, free: 15.38 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.373e-06/0.4236, allocations: 4 kB / 0.5655 GB, free: 15.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001551/0.4252, allocations: 0.6539 MB / 0.5662 GB, free: 14.67 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/0.4252, allocations: 55.41 kB / 0.5662 GB, free: 14.61 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.4254, allocations: 125.8 kB / 0.5663 GB, free: 14.47 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.4254, allocations: 33.7 kB / 0.5664 GB, free: 14.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.026e-05/0.4255, allocations: 116.4 kB / 0.5665 GB, free: 14.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.787e-05/0.4255, allocations: 67.39 kB / 0.5665 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.202e-05/0.4256, allocations: 37.7 kB / 0.5666 GB, free: 14.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.4258, allocations: 322.8 kB / 0.5669 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.4259, allocations: 47.92 kB / 0.5669 GB, free: 13.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001259/0.426, allocations: 71.41 kB / 0.567 GB, free: 13.75 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002362/0.4262, allocations: 143.3 kB / 0.5671 GB, free: 13.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.4262, allocations: 0 / 0.5671 GB, free: 13.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000386/0.4266, allocations: 198.2 kB / 0.5673 GB, free: 13.4 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.4266, allocations: 8 kB / 0.5673 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.4266, allocations: 0 / 0.5673 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001906/0.4268, allocations: 40.83 kB / 0.5674 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.427, allocations: 43.95 kB / 0.5674 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001573/0.4286, allocations: 1.602 MB / 0.569 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.9e-05/0.4287, allocations: 7.922 kB / 0.569 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.4287, allocations: 12 kB / 0.569 GB, free: 11.58 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.0001173/0.4288, allocations: 125.8 kB / 0.5691 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.304e-05/0.4288, allocations: 7.953 kB / 0.5691 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.111e-05/0.4289, allocations: 16.84 kB / 0.5691 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-06/0.4289, allocations: 8 kB / 0.5691 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.4289, allocations: 0 / 0.5691 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.288e-06/0.4289, allocations: 7.922 kB / 0.5692 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007852/0.4297, allocations: 479.5 kB / 0.5696 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.4297, allocations: 0 / 0.5696 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.4299, allocations: 35.97 kB / 0.5696 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001067/0.43, allocations: 36.75 kB / 0.5697 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.43, allocations: 12.19 kB / 0.5697 GB, free: 10.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/0.4314, allocations: 1.358 MB / 0.571 GB, free: 9.344 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.4314, allocations: 0 / 0.571 GB, free: 9.344 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000543/0.4319, allocations: 341 kB / 0.5713 GB, free: 8.988 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.198e-05/0.4319, allocations: 11.94 kB / 0.5714 GB, free: 8.977 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.432, allocations: 12.12 kB / 0.5714 GB, free: 8.965 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.97e-05/0.432, allocations: 0 / 0.5714 GB, free: 8.965 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.89e-05/0.4321, allocations: 19.97 kB / 0.5714 GB, free: 8.945 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.4321, allocations: 7.938 kB / 0.5714 GB, free: 8.938 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.956e-05/0.4322, allocations: 101.9 kB / 0.5715 GB, free: 8.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4322, allocations: 0 / 0.5715 GB, free: 8.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003578/0.4326, allocations: 36 kB / 0.5715 GB, free: 8.805 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.0001291/0.4327, allocations: 99.23 kB / 0.5716 GB, free: 8.699 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000547/0.4332, allocations: 250.8 kB / 0.5719 GB, free: 8.441 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4332, allocations: 3.938 kB / 0.5719 GB, free: 8.438 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002832/0.4335, allocations: 192.9 kB / 0.572 GB, free: 8.238 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.4338, allocations: 19.94 kB / 0.5721 GB, free: 8.219 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008661/0.4347, allocations: 452.1 kB / 0.5725 GB, free: 7.754 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001178/0.4348, allocations: 107.7 kB / 0.5726 GB, free: 7.625 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.74e-05/0.4349, allocations: 9.422 kB / 0.5726 GB, free: 7.617 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.785e-05/0.4349, allocations: 19.44 kB / 0.5726 GB, free: 7.598 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4349, allocations: 0 / 0.5726 GB, free: 7.598 MB / 414.1 MB Notification: Performance of Templates: time 0.005549/0.4405, allocations: 1.722 MB / 0.5743 GB, free: 5.887 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 5.3444472793489695]