Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.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.001292/0.001292, allocations: 112.5 kB / 21.19 MB, free: 0.7578 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.001415/0.001415, allocations: 209.8 kB / 24.49 MB, free: 4.133 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.447/1.447, allocations: 230.6 MB / 258.3 MB, free: 8.23 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.233/0.233, allocations: 46.94 MB / 361.6 MB, free: 4.309 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+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.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002696/0.002696, allocations: 71.89 kB / 0.4974 GB, free: 7.426 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3402, allocations: 66.03 MB / 0.5619 GB, free: 4.438 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.00162/0.3418, allocations: 0.5041 MB / 0.5624 GB, free: 3.934 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002865/0.3447, allocations: 2.054 MB / 0.5644 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.555e-05/0.3447, allocations: 0 / 0.5644 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.778e-05/0.3447, allocations: 4 kB / 0.5644 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.299e-06/0.3447, allocations: 0 / 0.5644 GB, free: 1.855 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Math.mo:928:5-1011:16:writable] Warning: Pure function 'ModelicaTest.Math.Random.special' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.00135/0.3461, allocations: 0.5058 MB / 0.5649 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.426e-05/0.3461, allocations: 0 / 0.5649 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.928e-05/0.3462, allocations: 4 kB / 0.5649 GB, free: 1.348 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.448e-05/0.3462, allocations: 0 / 0.5649 GB, free: 1.348 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.709e-05/0.3462, allocations: 3.938 kB / 0.5649 GB, free: 1.344 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.59e-06/0.3462, allocations: 3.938 kB / 0.5649 GB, free: 1.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001092/0.3473, allocations: 0.7331 MB / 0.5656 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.743e-06/0.3473, allocations: 0 / 0.5656 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.673e-05/0.3473, allocations: 8 kB / 0.5656 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005354/0.3479, allocations: 393.4 kB / 0.566 GB, free: 224 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3479, allocations: 0 / 0.566 GB, free: 224 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3479, allocations: 0 / 0.566 GB, free: 224 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.3479, allocations: 0 / 0.566 GB, free: 224 kB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000453/0.3483, allocations: 343.4 kB / 0.5663 GB, free: 15.85 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.3484, allocations: 8.031 kB / 0.5663 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.768e-05/0.3484, allocations: 0.9375 kB / 0.5663 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.029e-05/0.3485, allocations: 110.5 kB / 0.5664 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.3485, allocations: 384 / 0.5664 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.141e-05/0.3485, allocations: 384 / 0.5664 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.09e-05/0.3486, allocations: 38 kB / 0.5665 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.3486, allocations: 0 / 0.5665 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-06/0.3486, allocations: 0 / 0.5665 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.3486, allocations: 0 / 0.5665 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.822e-05/0.3486, allocations: 7.938 kB / 0.5665 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001293/0.3488, allocations: 116.8 kB / 0.5666 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.727e-05/0.3488, allocations: 18.58 kB / 0.5666 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.696e-05/0.3488, allocations: 8.844 kB / 0.5666 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.853e-06/0.3488, allocations: 4.094 kB / 0.5666 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.19e-05/0.3489, allocations: 60.2 kB / 0.5667 GB, free: 15.38 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3489, allocations: 4 kB / 0.5667 GB, free: 15.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001726/0.3491, allocations: 67.33 kB / 0.5667 GB, free: 15.3 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.219e-05/0.3491, allocations: 77.11 kB / 0.5668 GB, free: 15.21 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.179e-05/0.3492, allocations: 101.8 kB / 0.5669 GB, free: 15.1 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.3492, allocations: 25.7 kB / 0.5669 GB, free: 15.07 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.589e-05/0.3492, allocations: 84.08 kB / 0.567 GB, free: 14.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.575e-05/0.3492, allocations: 4 kB / 0.567 GB, free: 14.98 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.428e-05/0.3492, allocations: 9.719 kB / 0.567 GB, free: 14.96 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.3494, allocations: 315 kB / 0.5673 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.069e-05/0.3494, allocations: 4 kB / 0.5673 GB, free: 14.64 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.03e-06/0.3494, allocations: 0 / 0.5673 GB, free: 14.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.547e-05/0.3494, allocations: 64.27 kB / 0.5674 GB, free: 14.56 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3495, allocations: 0 / 0.5674 GB, free: 14.56 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.918e-05/0.3495, allocations: 71.31 kB / 0.5675 GB, free: 14.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.316e-05/0.3496, allocations: 33.64 kB / 0.5675 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.3496, allocations: 0 / 0.5675 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.3496, allocations: 96 / 0.5675 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.3496, allocations: 4 kB / 0.5675 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.3496, allocations: 3.938 kB / 0.5675 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.675e-05/0.3496, allocations: 4 kB / 0.5675 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.3496, allocations: 0 / 0.5675 GB, free: 14.43 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.101e-05/0.3497, allocations: 135.5 kB / 0.5676 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.158e-05/0.3497, allocations: 7.938 kB / 0.5676 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.082e-05/0.3497, allocations: 3 kB / 0.5676 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.3497, allocations: 0 / 0.5676 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3497, allocations: 4 kB / 0.5676 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.3497, allocations: 0 / 0.5676 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.841e-05/0.3498, allocations: 116.8 kB / 0.5678 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.3498, allocations: 4 kB / 0.5678 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.446e-06/0.3498, allocations: 3.984 kB / 0.5678 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.3498, allocations: 7.938 kB / 0.5678 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-06/0.3498, allocations: 0 / 0.5678 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-07/0.3498, allocations: 0 / 0.5678 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.3498, allocations: 0 / 0.5678 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001078/0.3499, allocations: 98.77 kB / 0.5679 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.636e-06/0.3499, allocations: 0 / 0.5679 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.578e-05/0.35, allocations: 7.938 kB / 0.5679 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.536e-06/0.35, allocations: 0 / 0.5679 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.125e-05/0.35, allocations: 0 / 0.5679 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.35, allocations: 0 / 0.5679 GB, free: 13.96 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.108e-05/0.35, allocations: 75.28 kB / 0.5679 GB, free: 13.89 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.35, allocations: 3.938 kB / 0.5679 GB, free: 13.89 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003927/0.3504, allocations: 135.6 kB / 0.5681 GB, free: 13.75 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007269/0.3511, allocations: 310 kB / 0.5684 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001083/0.3512, allocations: 63.39 kB / 0.5684 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3512, allocations: 0 / 0.5684 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.109e-05/0.3513, allocations: 63.34 kB / 0.5685 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001181/0.3514, allocations: 4 kB / 0.5685 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002013/0.3516, allocations: 114.6 kB / 0.5686 GB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/0.3519, allocations: 0.6729 MB / 0.5693 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.205e-05/0.3519, allocations: 7.438 kB / 0.5693 GB, free: 12.44 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3519, allocations: 0 / 0.5693 GB, free: 12.44 MB / 414.1 MB Notification: Performance of Templates: time 0.00653/0.3584, allocations: 3.413 MB / 0.5726 GB, free: 9.023 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.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.591801399132237]