Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.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.00129/0.00129, allocations: 117 kB / 18.49 MB, free: 4.566 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.001291/0.001291, allocations: 216.7 kB / 21.46 MB, free: 1.613 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.388/1.388, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.2149/0.2149, allocations: 46.92 MB / 357.7 MB, free: 10.16 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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00215/0.00215, allocations: 84.19 kB / 0.4916 GB, free: 7.688 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1231, allocations: 66.04 MB / 0.5561 GB, free: 5.516 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001498/0.1246, allocations: 0.4942 MB / 0.5566 GB, free: 5.016 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002817/0.1274, allocations: 2.045 MB / 0.5586 GB, free: 2.949 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.747e-05/0.1274, allocations: 0 / 0.5586 GB, free: 2.949 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.651e-05/0.1274, allocations: 4 kB / 0.5586 GB, free: 2.945 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.721e-06/0.1274, allocations: 4 kB / 0.5586 GB, free: 2.941 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001369/0.1288, allocations: 497.4 kB / 0.5591 GB, free: 2.457 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.281e-05/0.1289, allocations: 8 kB / 0.5591 GB, free: 2.449 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.686e-05/0.1289, allocations: 0 / 0.5591 GB, free: 2.449 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.58e-05/0.1289, allocations: 3.938 kB / 0.5591 GB, free: 2.445 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.574e-05/0.1289, allocations: 0 / 0.5591 GB, free: 2.445 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.155e-06/0.1289, allocations: 4 kB / 0.5591 GB, free: 2.441 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001017/0.13, allocations: 0.6707 MB / 0.5598 GB, free: 1.77 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.405e-06/0.13, allocations: 0 / 0.5598 GB, free: 1.77 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.022e-05/0.13, allocations: 11.92 kB / 0.5598 GB, free: 1.758 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005665/0.1305, allocations: 383.1 kB / 0.5602 GB, free: 1.383 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1306, allocations: 3.938 kB / 0.5602 GB, free: 1.379 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.466e-06/0.1306, allocations: 4 kB / 0.5602 GB, free: 1.375 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1306, allocations: 0 / 0.5602 GB, free: 1.375 MB / 414.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.0005114/0.1311, allocations: 408.6 kB / 0.5606 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1311, allocations: 12.03 kB / 0.5606 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.393e-05/0.1311, allocations: 4.188 kB / 0.5606 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.153e-05/0.1312, allocations: 38.7 kB / 0.5606 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.479e-05/0.1312, allocations: 0.9375 kB / 0.5606 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.1313, allocations: 164.4 kB / 0.5608 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.1314, allocations: 384 / 0.5608 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.458e-06/0.1314, allocations: 4.375 kB / 0.5608 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.707e-05/0.1315, allocations: 37.56 kB / 0.5608 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.1315, allocations: 8 kB / 0.5608 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.003e-06/0.1315, allocations: 0 / 0.5608 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.1315, allocations: 0 / 0.5608 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.119e-05/0.1315, allocations: 4 kB / 0.5608 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00027/0.1318, allocations: 232.9 kB / 0.561 GB, free: 332 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.633e-05/0.1318, allocations: 22.61 kB / 0.5611 GB, free: 300 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.832e-05/0.1319, allocations: 12.86 kB / 0.5611 GB, free: 284 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.708e-06/0.1319, allocations: 4 kB / 0.5611 GB, free: 280 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.123e-05/0.1319, allocations: 64.2 kB / 0.5611 GB, free: 200 kB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.1319, allocations: 0 / 0.5611 GB, free: 200 kB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002091/0.1321, allocations: 71.39 kB / 0.5612 GB, free: 116 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.366e-05/0.1322, allocations: 77.11 kB / 0.5613 GB, free: 20 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.748e-05/0.1323, allocations: 89.86 kB / 0.5614 GB, free: 15.92 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.1323, allocations: 25.7 kB / 0.5614 GB, free: 15.89 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.868e-05/0.1323, allocations: 84.27 kB / 0.5615 GB, free: 15.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.841e-05/0.1324, allocations: 15.86 kB / 0.5615 GB, free: 15.79 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.468e-05/0.1324, allocations: 17.72 kB / 0.5615 GB, free: 15.77 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1326, allocations: 310.8 kB / 0.5618 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.559e-05/0.1326, allocations: 4 kB / 0.5618 GB, free: 15.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.893e-06/0.1326, allocations: 3.938 kB / 0.5618 GB, free: 15.45 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.117e-05/0.1327, allocations: 72.2 kB / 0.5619 GB, free: 15.36 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1327, allocations: 0 / 0.5619 GB, free: 15.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.203e-05/0.1327, allocations: 71.45 kB / 0.5619 GB, free: 15.28 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.175e-05/0.1328, allocations: 31.73 kB / 0.562 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.1328, allocations: 4 kB / 0.562 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.1328, allocations: 0 / 0.562 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.432e-05/0.1328, allocations: 0 / 0.562 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.1328, allocations: 0 / 0.562 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.533e-05/0.1328, allocations: 3.938 kB / 0.562 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.1329, allocations: 3.984 kB / 0.562 GB, free: 15.23 MB / 430.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: 2 ($outputAlias_result,result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * 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 0.0001105/0.133, allocations: 143.4 kB / 0.5621 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.125e-05/0.133, allocations: 4.031 kB / 0.5621 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.402e-05/0.133, allocations: 3.125 kB / 0.5621 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-06/0.133, allocations: 0 / 0.5621 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.133, allocations: 4 kB / 0.5621 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.133, allocations: 0 / 0.5621 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003635/0.1334, allocations: 300.3 kB / 0.5624 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1334, allocations: 0 / 0.5624 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.751e-06/0.1334, allocations: 4 kB / 0.5624 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.1334, allocations: 0 / 0.5624 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.1334, allocations: 4.031 kB / 0.5624 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.1334, allocations: 0 / 0.5624 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.1334, allocations: 0 / 0.5624 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001664/0.1336, allocations: 173.1 kB / 0.5626 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.089e-05/0.1336, allocations: 81.05 kB / 0.5627 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.145e-05/0.1336, allocations: 0 / 0.5627 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.256e-05/0.1337, allocations: 0 / 0.5627 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.449e-05/0.1337, allocations: 4 kB / 0.5627 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.113e-06/0.1337, allocations: 12.03 kB / 0.5627 GB, free: 14.4 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.79e-05/0.1337, allocations: 79.25 kB / 0.5628 GB, free: 14.32 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1337, allocations: 0 / 0.5628 GB, free: 14.32 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004376/0.1342, allocations: 131.6 kB / 0.5629 GB, free: 14.19 MB / 430.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: 2 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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.001135/0.1353, allocations: 0.9198 MB / 0.5638 GB, free: 13.24 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001189/0.1354, allocations: 63.41 kB / 0.5638 GB, free: 13.17 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1354, allocations: 0 / 0.5638 GB, free: 13.17 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.298e-05/0.1355, allocations: 63.45 kB / 0.5639 GB, free: 13.09 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001803/0.1356, allocations: 4 kB / 0.5639 GB, free: 13.09 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.1367, allocations: 1.199 MB / 0.5651 GB, free: 11.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.137, allocations: 0.669 MB / 0.5657 GB, free: 11.11 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.155e-05/0.137, allocations: 0 / 0.5657 GB, free: 11.11 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.281e-05/0.137, allocations: 11.44 kB / 0.5657 GB, free: 11.1 MB / 430.1 MB Notification: Performance of SimCode: time 2.71e-07/0.137, allocations: 0 / 0.5657 GB, free: 11.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0198/0.1568, allocations: 4.578 MB / 0.5702 GB, free: 6.602 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.069/8.225, allocations: 4.062 kB / 0.5702 GB, free: 6.598 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 11.026140355039388]