Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001706/0.001706, allocations: 108.4 kB / 21.17 MB, free: 0.7852 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.002078/0.002078, allocations: 217.3 kB / 24.47 MB, free: 4.359 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.498/1.498, allocations: 230.2 MB / 257.8 MB, free: 8.488 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2288/0.2288, allocations: 46.89 MB / 361.1 MB, free: 4.629 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_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-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002377/0.002377, allocations: 79.86 kB / 0.4967 GB, free: 7.82 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3429, allocations: 65.99 MB / 0.5612 GB, free: 5.043 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003654/0.3466, allocations: 1.928 MB / 0.5631 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001186/0.3477, allocations: 0.5776 MB / 0.5636 GB, free: 2.523 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.3478, allocations: 3.938 kB / 0.5636 GB, free: 2.52 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001585/0.348, allocations: 19.8 kB / 0.5637 GB, free: 2.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.3481, allocations: 43.62 kB / 0.5637 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002678/0.3484, allocations: 51.88 kB / 0.5637 GB, free: 2.406 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002476/0.3486, allocations: 155.2 kB / 0.5639 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.3488, allocations: 41.66 kB / 0.5639 GB, free: 2.211 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001813/0.349, allocations: 67.77 kB / 0.564 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001531/0.3492, allocations: 67.7 kB / 0.5641 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.565e-05/0.3492, allocations: 12 kB / 0.5641 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.942e-05/0.3493, allocations: 12 kB / 0.5641 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.42e-05/0.3493, allocations: 27.92 kB / 0.5641 GB, free: 2.027 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.85e-05/0.3494, allocations: 79.58 kB / 0.5642 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002873/0.3497, allocations: 150 kB / 0.5643 GB, free: 1.805 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3497, allocations: 0 / 0.5643 GB, free: 1.805 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.3497, allocations: 0 / 0.5643 GB, free: 1.805 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.834e-06/0.3497, allocations: 0 / 0.5643 GB, free: 1.805 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.0007205/0.3504, allocations: 446.8 kB / 0.5648 GB, free: 1.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.3504, allocations: 12.03 kB / 0.5648 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000173/0.3506, allocations: 24.83 kB / 0.5648 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002826/0.3509, allocations: 208.2 kB / 0.565 GB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.3509, allocations: 16.31 kB / 0.565 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.595e-05/0.351, allocations: 16.33 kB / 0.565 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002701/0.3512, allocations: 121.8 kB / 0.5651 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/0.3512, allocations: 11.98 kB / 0.5651 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.215e-05/0.3513, allocations: 11.98 kB / 0.5652 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.3513, allocations: 4 kB / 0.5652 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001924/0.3515, allocations: 83.94 kB / 0.5652 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007387/0.3522, allocations: 460.3 kB / 0.5657 GB, free: 284 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002417/0.3524, allocations: 118.5 kB / 0.5658 GB, free: 156 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.3526, allocations: 56.78 kB / 0.5659 GB, free: 96 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.3526, allocations: 0 / 0.5659 GB, free: 96 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.3526, allocations: 30.56 kB / 0.5659 GB, free: 56 kB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 9.62e-07/0.3526, allocations: 0 / 0.5659 GB, free: 56 kB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001551/0.3542, allocations: 0.8139 MB / 0.5667 GB, free: 15.14 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.3542, allocations: 51.41 kB / 0.5667 GB, free: 15.08 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.3543, allocations: 143.7 kB / 0.5669 GB, free: 14.93 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.3544, allocations: 29.7 kB / 0.5669 GB, free: 14.89 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.27e-05/0.3545, allocations: 112.4 kB / 0.567 GB, free: 14.78 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.69e-05/0.3545, allocations: 75.38 kB / 0.5671 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.523e-05/0.3546, allocations: 33.72 kB / 0.5671 GB, free: 14.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.3547, allocations: 322.8 kB / 0.5674 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.934e-05/0.3548, allocations: 47.91 kB / 0.5675 GB, free: 14.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.3549, allocations: 79.34 kB / 0.5675 GB, free: 14.2 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002226/0.3551, allocations: 135.3 kB / 0.5677 GB, free: 14.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.3551, allocations: 0 / 0.5677 GB, free: 14.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003843/0.3555, allocations: 202.3 kB / 0.5679 GB, free: 13.85 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.3556, allocations: 14.44 kB / 0.5679 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3556, allocations: 0 / 0.5679 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001856/0.3557, allocations: 48.8 kB / 0.5679 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.3559, allocations: 35.92 kB / 0.5679 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001589/0.3575, allocations: 1.744 MB / 0.5696 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.726e-05/0.3576, allocations: 8.031 kB / 0.5697 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.3576, allocations: 4 kB / 0.5697 GB, free: 11.86 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.0001268/0.3577, allocations: 129.8 kB / 0.5698 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.814e-05/0.3578, allocations: 19.97 kB / 0.5698 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.498e-05/0.3578, allocations: 21.17 kB / 0.5698 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.3578, allocations: 7.938 kB / 0.5698 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.3578, allocations: 0 / 0.5698 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.3578, allocations: 0 / 0.5698 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007963/0.3586, allocations: 0.5469 MB / 0.5704 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3586, allocations: 4.031 kB / 0.5704 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001655/0.3588, allocations: 31.98 kB / 0.5704 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001021/0.3589, allocations: 28.83 kB / 0.5704 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.3589, allocations: 8 kB / 0.5704 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001238/0.3601, allocations: 1.482 MB / 0.5719 GB, free: 9.375 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3601, allocations: 0 / 0.5719 GB, free: 9.375 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005103/0.3606, allocations: 350.4 kB / 0.5722 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.171e-05/0.3607, allocations: 96.94 kB / 0.5723 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.3607, allocations: 0 / 0.5723 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.773e-05/0.3608, allocations: 8 kB / 0.5723 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.24e-05/0.3609, allocations: 15.86 kB / 0.5723 GB, free: 8.875 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.3609, allocations: 11.98 kB / 0.5723 GB, free: 8.863 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.847e-05/0.361, allocations: 109.8 kB / 0.5724 GB, free: 8.758 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.361, allocations: 4.062 kB / 0.5725 GB, free: 8.754 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000335/0.3613, allocations: 40 kB / 0.5725 GB, free: 8.715 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.0001193/0.3614, allocations: 91.25 kB / 0.5726 GB, free: 8.613 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005062/0.3619, allocations: 262.8 kB / 0.5728 GB, free: 8.344 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3619, allocations: 0 / 0.5728 GB, free: 8.344 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002652/0.3622, allocations: 186.7 kB / 0.573 GB, free: 8.148 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000325/0.3625, allocations: 26.8 kB / 0.573 GB, free: 8.129 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000799/0.3633, allocations: 456.5 kB / 0.5735 GB, free: 7.656 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003634/0.3637, allocations: 0.7243 MB / 0.5742 GB, free: 6.898 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.174e-05/0.3637, allocations: 13.41 kB / 0.5742 GB, free: 6.883 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.663e-05/0.3638, allocations: 15.44 kB / 0.5742 GB, free: 6.867 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3638, allocations: 0 / 0.5742 GB, free: 6.867 MB / 414.1 MB Notification: Performance of Templates: time 0.005122/0.3689, allocations: 1.706 MB / 0.5759 GB, free: 5.168 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.196715410333127]