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.001611/0.001611, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 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.00114/0.00114, allocations: 164.9 kB / 24.99 MB, free: 8.793 MB / 18.57 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.057/1.057, allocations: 177.1 MB / 205.3 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] 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.2783/0.2783, allocations: 34.26 MB / 296 MB, free: 0.7031 MB / 266.7 MB " [Timeout remaining time 180] 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 1.402e-06/1.402e-06, allocations: 0 / 378 MB, free: 2.984 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.358e-05/1.498e-05, allocations: 5.969 kB / 378 MB, free: 2.98 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002009/0.002024, allocations: 1.961 MB / 380 MB, free: 1.004 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006414/0.002665, allocations: 0.5569 MB / 380.5 MB, free: 452 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.032e-05/0.002736, allocations: 0 / 380.5 MB, free: 452 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001028/0.002838, allocations: 19.8 kB / 380.5 MB, free: 432 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.871e-05/0.002907, allocations: 47.56 kB / 380.6 MB, free: 384 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001896/0.003097, allocations: 47.81 kB / 380.6 MB, free: 336 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000146/0.003243, allocations: 167.2 kB / 380.8 MB, free: 168 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001178/0.003361, allocations: 33.86 kB / 380.8 MB, free: 132 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001415/0.003502, allocations: 95.78 kB / 380.9 MB, free: 36 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.77e-05/0.00359, allocations: 51.81 kB / 381 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.991e-05/0.00361, allocations: 12 kB / 381 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.793e-05/0.003648, allocations: 12 kB / 381 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.079e-05/0.003668, allocations: 31.84 kB / 381 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 4.081e-05/0.003709, allocations: 47.91 kB / 381.1 MB, free: 15.88 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001518/0.003861, allocations: 103.6 kB / 381.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.874e-06/0.003863, allocations: 4 kB / 381.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.41e-07/0.003863, allocations: 0 / 381.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.958e-06/0.003867, allocations: 4 kB / 381.2 MB, free: 15.77 MB / 362.7 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.0003959/0.004263, allocations: 468 kB / 381.6 MB, free: 15.28 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.004295, allocations: 12.03 kB / 381.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.004397, allocations: 32.83 kB / 381.7 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001514/0.004548, allocations: 148.4 kB / 381.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.00456, allocations: 12.38 kB / 381.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.526e-05/0.004585, allocations: 16.36 kB / 381.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001485/0.004734, allocations: 110.9 kB / 382 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.004744, allocations: 4.188 kB / 382 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.004759, allocations: 16.05 kB / 382 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.004767, allocations: 4 kB / 382 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.57e-05/0.004843, allocations: 43.97 kB / 382 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000442/0.005285, allocations: 419.3 kB / 382.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001399/0.005424, allocations: 97.72 kB / 382.5 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.287e-05/0.005477, allocations: 35.92 kB / 382.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.194e-05/0.005489, allocations: 0 / 382.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.005515, allocations: 53.38 kB / 382.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.313e-06/0.005516, allocations: 0 / 382.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008231/0.006339, allocations: 0.5679 MB / 383.2 MB, free: 13.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.482e-05/0.006364, allocations: 59.34 kB / 383.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.272e-05/0.006447, allocations: 181.9 kB / 383.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.205e-05/0.006459, allocations: 29.7 kB / 383.4 MB, free: 13.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.97e-05/0.006519, allocations: 171.1 kB / 383.6 MB, free: 13.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.196e-05/0.00655, allocations: 63.44 kB / 383.7 MB, free: 13.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.495e-05/0.006595, allocations: 51.31 kB / 383.7 MB, free: 12.97 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.006701, allocations: 0.4923 MB / 384.2 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.622e-05/0.006738, allocations: 19.98 kB / 384.2 MB, free: 12.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.805e-05/0.006796, allocations: 65.73 kB / 384.3 MB, free: 12.37 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.006903, allocations: 106.5 kB / 384.4 MB, free: 12.25 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.006904, allocations: 0 / 384.4 MB, free: 12.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000188/0.007092, allocations: 169.1 kB / 384.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.007103, allocations: 9.875 kB / 384.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.007107, allocations: 4.031 kB / 384.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001149/0.007222, allocations: 47.69 kB / 384.6 MB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.569e-05/0.007317, allocations: 31.92 kB / 384.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009347/0.008252, allocations: 2.11 MB / 386.8 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.586e-05/0.008288, allocations: 12.28 kB / 386.8 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-06/0.008297, allocations: 8 kB / 386.8 MB, free: 9.734 MB / 362.7 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 7.437e-05/0.008371, allocations: 180.4 kB / 387 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.394e-05/0.008395, allocations: 15.91 kB / 387 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.015e-05/0.008415, allocations: 24.72 kB / 387 MB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.008416, allocations: 0 / 387 MB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.008419, allocations: 4 kB / 387 MB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.008422, allocations: 0 / 387 MB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003928/0.008815, allocations: 492.4 kB / 387.5 MB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.008816, allocations: 0 / 387.5 MB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.266e-05/0.008909, allocations: 35.98 kB / 387.5 MB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.756e-05/0.008976, allocations: 27.66 kB / 387.6 MB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-06/0.008986, allocations: 8 kB / 387.6 MB, free: 8.895 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006695/0.009655, allocations: 1.803 MB / 389.4 MB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.009656, allocations: 0 / 389.4 MB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002407/0.009897, allocations: 342.9 kB / 389.7 MB, free: 6.609 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.376e-06/0.009905, allocations: 11.89 kB / 389.7 MB, free: 6.598 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.009917, allocations: 8 kB / 389.7 MB, free: 6.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.341e-05/0.00996, allocations: 4 kB / 389.7 MB, free: 6.586 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.103e-05/0.009991, allocations: 15.91 kB / 389.7 MB, free: 6.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.009998, allocations: 8 kB / 389.7 MB, free: 6.562 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.36e-05/0.01004, allocations: 142.3 kB / 389.9 MB, free: 6.426 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01004, allocations: 4.062 kB / 389.9 MB, free: 6.422 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001935/0.01023, allocations: 40 kB / 389.9 MB, free: 6.383 MB / 362.7 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 6.666e-05/0.0103, allocations: 95.25 kB / 390 MB, free: 6.277 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002648/0.01057, allocations: 285.3 kB / 390.3 MB, free: 5.977 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.92e-07/0.01057, allocations: 0 / 390.3 MB, free: 5.977 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001344/0.0107, allocations: 254.2 kB / 390.6 MB, free: 5.711 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002001/0.0109, allocations: 30.78 kB / 390.6 MB, free: 5.684 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005676/0.01147, allocations: 374.6 kB / 390.9 MB, free: 5.281 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.98e-05/0.01151, allocations: 80.16 kB / 391 MB, free: 5.18 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.078e-05/0.01154, allocations: 13.5 kB / 391 MB, free: 5.168 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.41e-05/0.01156, allocations: 12.5 kB / 391.1 MB, free: 5.156 MB / 362.7 MB Notification: Performance of SimCode: time 6.82e-07/0.01156, allocations: 0 / 391.1 MB, free: 5.156 MB / 362.7 MB Notification: Performance of Templates: time 0.002886/0.01445, allocations: 1.622 MB / 392.7 MB, free: 3.551 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3035995080135763]