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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001097/0.001097, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001182/0.001182, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2098/0.2098, allocations: 46.1 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 77.88 kB / 417.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1141, allocations: 62.44 MB / 480.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001699/0.1158, allocations: 498.3 kB / 480.6 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002697/0.1185, allocations: 2.034 MB / 482.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.992e-05/0.1186, allocations: 0 / 482.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.127e-05/0.1186, allocations: 0 / 482.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.639e-06/0.1186, allocations: 0 / 482.6 MB, free: 2.609 MB / 350.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.001569/0.1202, allocations: 0.4904 MB / 483.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.933e-05/0.1203, allocations: 7.984 kB / 483.1 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.034e-05/0.1203, allocations: 4 kB / 483.2 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.758e-05/0.1204, allocations: 0 / 483.2 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.201e-05/0.1204, allocations: 4 kB / 483.2 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.264e-06/0.1204, allocations: 0 / 483.2 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00113/0.1215, allocations: 0.6396 MB / 483.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.596e-06/0.1215, allocations: 0 / 483.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.674e-05/0.1216, allocations: 3.938 kB / 483.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009198/0.1225, allocations: 387.3 kB / 484.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1225, allocations: 4 kB / 484.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1225, allocations: 0 / 484.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.1225, allocations: 0 / 484.2 MB, free: 1.078 MB / 350.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.0007119/0.1233, allocations: 413.4 kB / 484.6 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.1233, allocations: 8.031 kB / 484.6 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.821e-05/0.1234, allocations: 34.75 kB / 484.6 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.388e-05/0.1234, allocations: 4.938 kB / 484.6 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.712e-05/0.1235, allocations: 164.4 kB / 484.8 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.1235, allocations: 384 / 484.8 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.357e-06/0.1235, allocations: 4.375 kB / 484.8 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.097e-05/0.1236, allocations: 37.77 kB / 484.8 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.072e-06/0.1236, allocations: 0 / 484.8 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.214e-06/0.1236, allocations: 4 kB / 484.8 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.044e-06/0.1237, allocations: 0 / 484.8 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.94e-05/0.1237, allocations: 0 / 484.8 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002547/0.1239, allocations: 232.9 kB / 485.1 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.935e-05/0.124, allocations: 22.61 kB / 485.1 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.724e-05/0.1241, allocations: 12.86 kB / 485.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.227e-05/0.1241, allocations: 7.984 kB / 485.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.686e-05/0.1242, allocations: 60.27 kB / 485.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.1242, allocations: 4 kB / 485.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001914/0.1244, allocations: 63.41 kB / 485.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.764e-05/0.1244, allocations: 81.09 kB / 485.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.688e-05/0.1245, allocations: 93.86 kB / 485.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.1245, allocations: 29.64 kB / 485.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.128e-05/0.1246, allocations: 80.14 kB / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.162e-05/0.1246, allocations: 7.906 kB / 485.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-05/0.1246, allocations: 9.719 kB / 485.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.1248, allocations: 315 kB / 485.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.61e-05/0.1248, allocations: 8 kB / 485.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.665e-06/0.1249, allocations: 3.938 kB / 485.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.979e-05/0.1249, allocations: 68.25 kB / 485.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1249, allocations: 3.938 kB / 485.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001674/0.1251, allocations: 67.41 kB / 486 MB, free: 15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.788e-05/0.1251, allocations: 37.64 kB / 486 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.1251, allocations: 0 / 486 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.1252, allocations: 4.094 kB / 486 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.748e-05/0.1252, allocations: 3.984 kB / 486 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.1252, allocations: 0 / 486 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.648e-05/0.1252, allocations: 0 / 486 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-06/0.1252, allocations: 4 kB / 486 MB, free: 14.95 MB / 366.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.0001136/0.1254, allocations: 143.4 kB / 486.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.396e-05/0.1254, allocations: 0 / 486.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.661e-05/0.1254, allocations: 7.125 kB / 486.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.1254, allocations: 0 / 486.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1254, allocations: 4 kB / 486.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.1254, allocations: 0 / 486.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002731/0.1257, allocations: 300.3 kB / 486.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1257, allocations: 0 / 486.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.558e-06/0.1257, allocations: 0 / 486.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.1257, allocations: 0 / 486.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.191e-06/0.1257, allocations: 0 / 486.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1258, allocations: 0 / 486.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1258, allocations: 0 / 486.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001482/0.1259, allocations: 185.1 kB / 486.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.391e-05/0.126, allocations: 81.09 kB / 486.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.126, allocations: 0 / 486.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.945e-05/0.126, allocations: 4 kB / 486.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.663e-05/0.126, allocations: 0 / 486.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.1261, allocations: 0 / 486.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.61e-05/0.1261, allocations: 79.31 kB / 486.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1261, allocations: 0 / 486.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005185/0.1266, allocations: 135.9 kB / 486.9 MB, free: 13.91 MB / 366.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.00135/0.128, allocations: 0.9251 MB / 487.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001913/0.1282, allocations: 63.41 kB / 487.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1282, allocations: 0 / 487.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.913e-05/0.1282, allocations: 63.39 kB / 488 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002043/0.1284, allocations: 0 / 488 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009777/0.1294, allocations: 1.192 MB / 489.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002404/0.1297, allocations: 0.669 MB / 489.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.172e-05/0.1297, allocations: 0 / 489.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.044e-05/0.1297, allocations: 11.44 kB / 489.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1297, allocations: 0 / 489.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02376/0.1535, allocations: 4.499 MB / 494.4 MB, free: 6.383 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.511/7.665, allocations: 9.969 kB / 494.4 MB, free: 6.375 MB / 366.1 MB (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches