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.001837/0.001837, allocations: 121.3 kB / 18.5 MB, free: 4.578 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.002221/0.002221, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.531/1.531, allocations: 230.2 MB / 254.5 MB, free: 15.27 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.2722/0.2722, allocations: 46.9 MB / 357.4 MB, free: 10.58 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002185/0.002185, allocations: 79.88 kB / 0.4912 GB, free: 8.543 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1339, allocations: 65.99 MB / 0.5557 GB, free: 6.422 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001628/0.1355, allocations: 0.4989 MB / 0.5562 GB, free: 5.918 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003042/0.1386, allocations: 2.049 MB / 0.5582 GB, free: 3.848 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.942e-05/0.1386, allocations: 4 kB / 0.5582 GB, free: 3.844 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.459e-05/0.1386, allocations: 0 / 0.5582 GB, free: 3.844 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.17e-06/0.1386, allocations: 0 / 0.5582 GB, free: 3.844 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.001507/0.1401, allocations: 0.4894 MB / 0.5587 GB, free: 3.355 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.834e-05/0.1402, allocations: 4 kB / 0.5587 GB, free: 3.352 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.742e-05/0.1402, allocations: 0 / 0.5587 GB, free: 3.352 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.705e-05/0.1402, allocations: 3.938 kB / 0.5587 GB, free: 3.348 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.208e-05/0.1402, allocations: 7.984 kB / 0.5587 GB, free: 3.34 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.214e-06/0.1402, allocations: 0 / 0.5587 GB, free: 3.34 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00111/0.1413, allocations: 0.6668 MB / 0.5593 GB, free: 2.672 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.614e-06/0.1414, allocations: 0 / 0.5593 GB, free: 2.672 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.026e-05/0.1414, allocations: 4 kB / 0.5593 GB, free: 2.668 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005792/0.142, allocations: 395 kB / 0.5597 GB, free: 2.281 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.142, allocations: 0 / 0.5597 GB, free: 2.281 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.142, allocations: 0 / 0.5597 GB, free: 2.281 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.142, allocations: 0 / 0.5597 GB, free: 2.281 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.0004943/0.1425, allocations: 416.6 kB / 0.5601 GB, free: 1.82 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.1425, allocations: 12.03 kB / 0.5601 GB, free: 1.809 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.248e-05/0.1426, allocations: 34.7 kB / 0.5601 GB, free: 1.766 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.872e-05/0.1426, allocations: 0.9375 kB / 0.5601 GB, free: 1.766 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001238/0.1427, allocations: 160.4 kB / 0.5603 GB, free: 1.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.1427, allocations: 4.359 kB / 0.5603 GB, free: 1.566 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.317e-05/0.1428, allocations: 4.375 kB / 0.5603 GB, free: 1.562 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.696e-05/0.1428, allocations: 33.81 kB / 0.5603 GB, free: 1.523 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.1429, allocations: 8 kB / 0.5603 GB, free: 1.516 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-06/0.1429, allocations: 0 / 0.5603 GB, free: 1.516 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.836e-06/0.1429, allocations: 0 / 0.5603 GB, free: 1.516 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.255e-05/0.1429, allocations: 7.938 kB / 0.5604 GB, free: 1.508 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000284/0.1432, allocations: 232.9 kB / 0.5606 GB, free: 1.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.776e-05/0.1432, allocations: 22.61 kB / 0.5606 GB, free: 1.199 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.487e-05/0.1433, allocations: 8.922 kB / 0.5606 GB, free: 1.188 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.468e-06/0.1433, allocations: 4 kB / 0.5606 GB, free: 1.184 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.127e-05/0.1433, allocations: 64.2 kB / 0.5607 GB, free: 1.105 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.1433, allocations: 0 / 0.5607 GB, free: 1.105 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002057/0.1435, allocations: 75.33 kB / 0.5607 GB, free: 1.02 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.107e-05/0.1436, allocations: 77.11 kB / 0.5608 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.573e-05/0.1436, allocations: 89.86 kB / 0.5609 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.1437, allocations: 29.64 kB / 0.5609 GB, free: 0.793 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.287e-05/0.1437, allocations: 84.27 kB / 0.561 GB, free: 0.707 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.12e-05/0.1437, allocations: 11.89 kB / 0.561 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.325e-05/0.1438, allocations: 17.7 kB / 0.561 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1439, allocations: 310.8 kB / 0.5613 GB, free: 368 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.222e-05/0.1439, allocations: 4 kB / 0.5613 GB, free: 364 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.352e-06/0.1439, allocations: 0 / 0.5613 GB, free: 364 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.106e-05/0.144, allocations: 72.2 kB / 0.5614 GB, free: 276 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.144, allocations: 3.938 kB / 0.5614 GB, free: 272 kB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.794e-05/0.1441, allocations: 71.45 kB / 0.5615 GB, free: 188 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.1441, allocations: 29.7 kB / 0.5615 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.1441, allocations: 4 kB / 0.5615 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.1441, allocations: 0 / 0.5615 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.334e-05/0.1441, allocations: 0 / 0.5615 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.1441, allocations: 0 / 0.5615 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.592e-05/0.1442, allocations: 0 / 0.5615 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-06/0.1442, allocations: 0 / 0.5615 GB, free: 148 kB / 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: 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.0001264/0.1443, allocations: 143.5 kB / 0.5616 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.1443, allocations: 4.031 kB / 0.5617 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.457e-05/0.1443, allocations: 7.125 kB / 0.5617 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.1443, allocations: 0 / 0.5617 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1443, allocations: 8 kB / 0.5617 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.1443, allocations: 0 / 0.5617 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002789/0.1446, allocations: 296.2 kB / 0.562 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1446, allocations: 0 / 0.562 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.114e-06/0.1446, allocations: 4 kB / 0.562 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.1446, allocations: 0 / 0.562 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-06/0.1446, allocations: 8.016 kB / 0.562 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1446, allocations: 0 / 0.562 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.1446, allocations: 0 / 0.562 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001401/0.1448, allocations: 169.1 kB / 0.5621 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.682e-05/0.1448, allocations: 85.03 kB / 0.5622 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.1448, allocations: 0 / 0.5622 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.305e-05/0.1449, allocations: 4 kB / 0.5622 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.933e-05/0.1449, allocations: 4 kB / 0.5622 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.1449, allocations: 4.031 kB / 0.5622 GB, free: 15.31 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.386e-05/0.145, allocations: 75.28 kB / 0.5623 GB, free: 15.23 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.145, allocations: 0 / 0.5623 GB, free: 15.23 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004201/0.1454, allocations: 135.5 kB / 0.5624 GB, free: 15.1 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.001153/0.1465, allocations: 0.918 MB / 0.5633 GB, free: 14.15 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001264/0.1467, allocations: 63.34 kB / 0.5634 GB, free: 14.08 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1467, allocations: 0 / 0.5634 GB, free: 14.08 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.594e-05/0.1467, allocations: 59.47 kB / 0.5634 GB, free: 14.01 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001961/0.1469, allocations: 12.44 kB / 0.5634 GB, free: 14 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.148, allocations: 1.191 MB / 0.5646 GB, free: 12.72 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003425/0.1483, allocations: 0.6729 MB / 0.5653 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.041e-05/0.1484, allocations: 0 / 0.5653 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.316e-05/0.1484, allocations: 11.44 kB / 0.5653 GB, free: 12.01 MB / 430.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1484, allocations: 0 / 0.5653 GB, free: 12.01 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02988/0.1783, allocations: 4.528 MB / 0.5697 GB, free: 7.547 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.35/8.529, allocations: 6.547 kB / 0.5697 GB, free: 7.543 MB / 430.1 MB " [Timeout remaining time 651] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.615471452008933]