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.001991/0.001991, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.00176/0.00176, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.566/1.566, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.2372/0.2372, allocations: 46.92 MB / 357.1 MB, free: 10.3 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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002085/0.002085, allocations: 67.88 kB / 0.4909 GB, free: 7.953 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1364, allocations: 65.99 MB / 0.5554 GB, free: 5.832 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002431/0.1389, allocations: 0.4982 MB / 0.5559 GB, free: 5.332 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004321/0.1432, allocations: 2.045 MB / 0.5579 GB, free: 3.266 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.716e-05/0.1432, allocations: 0 / 0.5579 GB, free: 3.266 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.867e-05/0.1432, allocations: 0 / 0.5579 GB, free: 3.266 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.631e-06/0.1432, allocations: 0 / 0.5579 GB, free: 3.266 MB / 414.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.002136/0.1454, allocations: 0.4946 MB / 0.5583 GB, free: 2.773 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.538e-05/0.1454, allocations: 0 / 0.5583 GB, free: 2.773 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.716e-05/0.1455, allocations: 0 / 0.5583 GB, free: 2.773 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.341e-05/0.1455, allocations: 7.922 kB / 0.5583 GB, free: 2.766 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.974e-05/0.1455, allocations: 4 kB / 0.5583 GB, free: 2.762 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.546e-06/0.1455, allocations: 4 kB / 0.5584 GB, free: 2.758 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001721/0.1472, allocations: 0.6707 MB / 0.559 GB, free: 2.086 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.673e-05/0.1473, allocations: 3.984 kB / 0.559 GB, free: 2.082 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.296e-05/0.1473, allocations: 0 / 0.559 GB, free: 2.082 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001041/0.1483, allocations: 387.1 kB / 0.5594 GB, free: 1.703 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.1483, allocations: 7.922 kB / 0.5594 GB, free: 1.695 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.1483, allocations: 0 / 0.5594 GB, free: 1.695 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.1483, allocations: 0 / 0.5594 GB, free: 1.695 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.0007143/0.1491, allocations: 412.6 kB / 0.5598 GB, free: 1.238 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.1491, allocations: 12.03 kB / 0.5598 GB, free: 1.227 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.604e-05/0.1492, allocations: 34.7 kB / 0.5598 GB, free: 1.184 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.934e-05/0.1492, allocations: 0.9375 kB / 0.5598 GB, free: 1.184 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/0.1494, allocations: 164.3 kB / 0.56 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.1494, allocations: 8.375 kB / 0.56 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.57e-05/0.1494, allocations: 8.375 kB / 0.56 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.1495, allocations: 37.81 kB / 0.56 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1495, allocations: 0 / 0.56 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.1495, allocations: 0 / 0.56 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.1495, allocations: 0 / 0.56 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.333e-05/0.1496, allocations: 0 / 0.56 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003342/0.1499, allocations: 232.9 kB / 0.5603 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.314e-05/0.15, allocations: 26.55 kB / 0.5603 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.699e-05/0.15, allocations: 12.92 kB / 0.5603 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.15, allocations: 0 / 0.5603 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.324e-05/0.1501, allocations: 60.27 kB / 0.5604 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.633e-06/0.1501, allocations: 3.938 kB / 0.5604 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002616/0.1504, allocations: 75.33 kB / 0.5604 GB, free: 444 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.358e-05/0.1504, allocations: 81.23 kB / 0.5605 GB, free: 344 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.091e-05/0.1505, allocations: 89.86 kB / 0.5606 GB, free: 244 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.1505, allocations: 25.7 kB / 0.5606 GB, free: 212 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.134e-05/0.1506, allocations: 80.14 kB / 0.5607 GB, free: 128 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.614e-05/0.1506, allocations: 7.891 kB / 0.5607 GB, free: 120 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.515e-05/0.1506, allocations: 17.7 kB / 0.5607 GB, free: 96 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002024/0.1509, allocations: 314.8 kB / 0.561 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.114e-05/0.1509, allocations: 4 kB / 0.561 GB, free: 15.77 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.818e-06/0.1509, allocations: 7.938 kB / 0.561 GB, free: 15.77 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.797e-05/0.151, allocations: 68.27 kB / 0.5611 GB, free: 15.68 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.151, allocations: 3.938 kB / 0.5611 GB, free: 15.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000123/0.1511, allocations: 67.33 kB / 0.5612 GB, free: 15.6 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.483e-05/0.1511, allocations: 33.7 kB / 0.5612 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1511, allocations: 0 / 0.5612 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.1512, allocations: 0 / 0.5612 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.608e-05/0.1512, allocations: 0 / 0.5612 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.1512, allocations: 0 / 0.5612 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.18e-05/0.1512, allocations: 4.094 kB / 0.5612 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.203e-06/0.1512, allocations: 0 / 0.5612 GB, free: 15.56 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.0001288/0.1513, allocations: 153.6 kB / 0.5613 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.931e-05/0.1514, allocations: 0 / 0.5613 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.52e-05/0.1514, allocations: 3.125 kB / 0.5613 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1514, allocations: 4 kB / 0.5614 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1514, allocations: 0 / 0.5614 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.1514, allocations: 0 / 0.5614 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004001/0.1518, allocations: 300.2 kB / 0.5616 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1518, allocations: 0 / 0.5616 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.915e-06/0.1518, allocations: 7.984 kB / 0.5616 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1518, allocations: 0 / 0.5616 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.1518, allocations: 0 / 0.5616 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1518, allocations: 0 / 0.5616 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1518, allocations: 0 / 0.5616 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001874/0.152, allocations: 173.2 kB / 0.5618 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.258e-05/0.1521, allocations: 81.17 kB / 0.5619 GB, free: 14.74 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.793e-05/0.1521, allocations: 7.938 kB / 0.5619 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.273e-05/0.1522, allocations: 0 / 0.5619 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.865e-05/0.1522, allocations: 4 kB / 0.5619 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.558e-06/0.1522, allocations: 0 / 0.5619 GB, free: 14.73 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.302e-05/0.1522, allocations: 75.28 kB / 0.562 GB, free: 14.65 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1522, allocations: 0 / 0.562 GB, free: 14.65 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007986/0.153, allocations: 139.5 kB / 0.5621 GB, free: 14.52 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.001757/0.1548, allocations: 0.9271 MB / 0.563 GB, free: 13.56 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001575/0.1549, allocations: 63.41 kB / 0.5631 GB, free: 13.48 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1549, allocations: 0 / 0.5631 GB, free: 13.48 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 7.085e-05/0.155, allocations: 59.34 kB / 0.5631 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003392/0.1554, allocations: 6.516 kB / 0.5631 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/0.157, allocations: 1.199 MB / 0.5643 GB, free: 12.12 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/0.1574, allocations: 0.669 MB / 0.565 GB, free: 11.43 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.311e-05/0.1575, allocations: 0 / 0.565 GB, free: 11.43 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.934e-05/0.1575, allocations: 15.5 kB / 0.565 GB, free: 11.41 MB / 430.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1575, allocations: 0 / 0.565 GB, free: 11.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03747/0.195, allocations: 4.523 MB / 0.5694 GB, free: 6.961 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.323/8.518, allocations: 9.734 kB / 0.5694 GB, free: 6.953 MB / 430.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 52.5] 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: 11.595309650991112]