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.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.001409/0.001409, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001517/0.001517, allocations: 209 kB / 24.48 MB, free: 3.938 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.45/1.45, allocations: 230.6 MB / 258.2 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.22/0.22, allocations: 44.93 MB / 359.6 MB, free: 6.02 MB / 286.1 MB " [Timeout remaining time 180] 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.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.0.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.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002158/0.002158, allocations: 71.89 kB / 0.4942 GB, free: 10.02 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3321, allocations: 65.46 MB / 0.5582 GB, free: 7.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00339/0.3355, allocations: 1.866 MB / 0.56 GB, free: 5.605 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.3365, allocations: 0.5309 MB / 0.5605 GB, free: 5.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.3366, allocations: 4 kB / 0.5605 GB, free: 5.066 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001331/0.3368, allocations: 19.73 kB / 0.5605 GB, free: 5.047 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001185/0.3369, allocations: 47.62 kB / 0.5606 GB, free: 5 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002496/0.3371, allocations: 47.89 kB / 0.5606 GB, free: 4.953 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002289/0.3374, allocations: 155.2 kB / 0.5608 GB, free: 4.801 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001688/0.3375, allocations: 41.84 kB / 0.5608 GB, free: 4.754 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001704/0.3377, allocations: 67.77 kB / 0.5609 GB, free: 4.688 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.3378, allocations: 59.7 kB / 0.5609 GB, free: 4.629 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.3378, allocations: 12 kB / 0.5609 GB, free: 4.617 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.477e-05/0.3379, allocations: 12 kB / 0.561 GB, free: 4.605 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.892e-05/0.3379, allocations: 27.86 kB / 0.561 GB, free: 4.578 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.744e-05/0.338, allocations: 59.8 kB / 0.561 GB, free: 4.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000232/0.3382, allocations: 161.7 kB / 0.5612 GB, free: 4.367 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3382, allocations: 0 / 0.5612 GB, free: 4.367 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3382, allocations: 4 kB / 0.5612 GB, free: 4.363 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.3382, allocations: 0 / 0.5612 GB, free: 4.363 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.0005888/0.3388, allocations: 361.7 kB / 0.5615 GB, free: 3.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.3389, allocations: 8.031 kB / 0.5616 GB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.339, allocations: 28.83 kB / 0.5616 GB, free: 3.945 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002799/0.3393, allocations: 158.3 kB / 0.5617 GB, free: 3.766 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.3393, allocations: 8.375 kB / 0.5617 GB, free: 3.758 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.954e-05/0.3394, allocations: 16.33 kB / 0.5618 GB, free: 3.742 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002812/0.3396, allocations: 134.2 kB / 0.5619 GB, free: 3.605 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.3397, allocations: 3.938 kB / 0.5619 GB, free: 3.602 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.3397, allocations: 4 kB / 0.5619 GB, free: 3.598 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.3397, allocations: 4 kB / 0.5619 GB, free: 3.594 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001929/0.3399, allocations: 87.92 kB / 0.562 GB, free: 3.508 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006502/0.3405, allocations: 372.1 kB / 0.5623 GB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002434/0.3408, allocations: 110.5 kB / 0.5624 GB, free: 2.996 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.3409, allocations: 48.84 kB / 0.5625 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.3409, allocations: 7.938 kB / 0.5625 GB, free: 2.938 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.854e-05/0.3409, allocations: 30.56 kB / 0.5625 GB, free: 2.898 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.232e-06/0.3409, allocations: 0 / 0.5625 GB, free: 2.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001523/0.3425, allocations: 0.6661 MB / 0.5632 GB, free: 2.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.347e-05/0.3425, allocations: 55.41 kB / 0.5632 GB, free: 2.113 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.3426, allocations: 121.8 kB / 0.5633 GB, free: 1.984 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.3427, allocations: 29.7 kB / 0.5634 GB, free: 1.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.132e-05/0.3427, allocations: 120.4 kB / 0.5635 GB, free: 1.828 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.952e-05/0.3428, allocations: 67.39 kB / 0.5635 GB, free: 1.762 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.406e-05/0.3429, allocations: 37.7 kB / 0.5636 GB, free: 1.719 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.343, allocations: 322.8 kB / 0.5639 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.3431, allocations: 43.98 kB / 0.5639 GB, free: 1.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.3432, allocations: 78.22 kB / 0.564 GB, free: 1.266 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002325/0.3435, allocations: 147.1 kB / 0.5641 GB, free: 1.109 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.3435, allocations: 0 / 0.5641 GB, free: 1.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000388/0.3439, allocations: 194.3 kB / 0.5643 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.3439, allocations: 8 kB / 0.5643 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.3439, allocations: 3.984 kB / 0.5643 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001775/0.3441, allocations: 44.81 kB / 0.5644 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.3442, allocations: 39.91 kB / 0.5644 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001653/0.3459, allocations: 1.602 MB / 0.566 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.705e-05/0.346, allocations: 11.97 kB / 0.566 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.644e-05/0.346, allocations: 7.984 kB / 0.566 GB, free: 15.09 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.0001331/0.3461, allocations: 133.8 kB / 0.5661 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.773e-05/0.3462, allocations: 15.89 kB / 0.5662 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.357e-05/0.3462, allocations: 20.72 kB / 0.5662 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.3462, allocations: 4 kB / 0.5662 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.3462, allocations: 0 / 0.5662 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.3462, allocations: 7.922 kB / 0.5662 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007796/0.347, allocations: 479.5 kB / 0.5666 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.347, allocations: 4.031 kB / 0.5666 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001673/0.3472, allocations: 35.97 kB / 0.5667 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001074/0.3473, allocations: 28.84 kB / 0.5667 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.3473, allocations: 4 kB / 0.5667 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001246/0.3485, allocations: 1.355 MB / 0.568 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3485, allocations: 0 / 0.568 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005363/0.3491, allocations: 351 kB / 0.5684 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.034e-05/0.3491, allocations: 11.94 kB / 0.5684 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.3491, allocations: 4 kB / 0.5684 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.021e-05/0.3492, allocations: 4 kB / 0.5684 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6e-05/0.3493, allocations: 19.97 kB / 0.5684 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.3493, allocations: 4 kB / 0.5684 GB, free: 12.45 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.206e-05/0.3494, allocations: 98.36 kB / 0.5685 GB, free: 12.35 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3494, allocations: 0 / 0.5685 GB, free: 12.35 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003405/0.3497, allocations: 40 kB / 0.5685 GB, free: 12.31 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.0001332/0.3498, allocations: 103.2 kB / 0.5686 GB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005301/0.3504, allocations: 246.8 kB / 0.5689 GB, free: 11.95 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.3504, allocations: 4 kB / 0.5689 GB, free: 11.95 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002775/0.3506, allocations: 190.5 kB / 0.5691 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003393/0.351, allocations: 24.06 kB / 0.5691 GB, free: 11.72 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008633/0.3518, allocations: 486.5 kB / 0.5695 GB, free: 11.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001195/0.352, allocations: 107.7 kB / 0.5696 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.587e-05/0.352, allocations: 15.44 kB / 0.5697 GB, free: 11.07 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.352, allocations: 0 / 0.5697 GB, free: 11.07 MB / 414.1 MB Notification: Performance of Templates: time 0.004579/0.3566, allocations: 2.473 MB / 0.5721 GB, free: 8.605 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.197242098860443]