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.001245/0.001246, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001312, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.55/1.55, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2357/0.2357, allocations: 46.11 MB / 344.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002227/0.002227, allocations: 83.84 kB / 480.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3321, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001718/0.3339, allocations: 0.502 MB / 0.5311 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003436/0.3373, allocations: 2.02 MB / 0.5331 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.144e-05/0.3374, allocations: 0 / 0.5331 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.302e-05/0.3374, allocations: 1.375 kB / 0.5331 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.201e-06/0.3374, allocations: 0 / 0.5331 GB, free: 11.4 MB / 398.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.001585/0.339, allocations: 0.5004 MB / 0.5336 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.922e-05/0.3391, allocations: 1.312 kB / 0.5336 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.094e-05/0.3391, allocations: 2.281 kB / 0.5336 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.592e-05/0.3391, allocations: 0 / 0.5336 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.81e-05/0.3392, allocations: 1.719 kB / 0.5336 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.68e-05/0.3392, allocations: 4 kB / 0.5336 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.3403, allocations: 0.6354 MB / 0.5342 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.584e-06/0.3404, allocations: 0 / 0.5342 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.907e-05/0.3404, allocations: 1.375 kB / 0.5342 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006445/0.341, allocations: 392.3 kB / 0.5346 GB, free: 10.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.341, allocations: 0 / 0.5346 GB, free: 10.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.341, allocations: 0 / 0.5346 GB, free: 10.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.3411, allocations: 0 / 0.5346 GB, free: 10.52 MB / 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.0005019/0.3416, allocations: 418.6 kB / 0.535 GB, free: 10.08 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.3416, allocations: 9.625 kB / 0.535 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.421e-05/0.3417, allocations: 42.64 kB / 0.535 GB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.215e-05/0.3417, allocations: 2.312 kB / 0.535 GB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001385/0.3419, allocations: 168.3 kB / 0.5352 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.3419, allocations: 5.75 kB / 0.5352 GB, free: 9.824 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.3419, allocations: 1.75 kB / 0.5352 GB, free: 9.824 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001052/0.342, allocations: 40.56 kB / 0.5352 GB, free: 9.781 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.342, allocations: 1.375 kB / 0.5352 GB, free: 9.781 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-06/0.342, allocations: 0 / 0.5352 GB, free: 9.781 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.342, allocations: 0 / 0.5352 GB, free: 9.781 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.105e-05/0.3421, allocations: 2.75 kB / 0.5352 GB, free: 9.781 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002772/0.3424, allocations: 231.6 kB / 0.5355 GB, free: 9.508 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.977e-05/0.3424, allocations: 28.08 kB / 0.5355 GB, free: 9.477 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.481e-05/0.3425, allocations: 8.984 kB / 0.5355 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.081e-05/0.3425, allocations: 0 / 0.5355 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.848e-05/0.3425, allocations: 61.64 kB / 0.5356 GB, free: 9.395 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.183e-06/0.3426, allocations: 1.375 kB / 0.5356 GB, free: 9.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002009/0.3428, allocations: 70.33 kB / 0.5356 GB, free: 9.324 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/0.3428, allocations: 86.61 kB / 0.5357 GB, free: 9.223 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.981e-05/0.3429, allocations: 89.86 kB / 0.5358 GB, free: 9.125 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.3429, allocations: 25.7 kB / 0.5358 GB, free: 9.094 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.647e-05/0.343, allocations: 81.52 kB / 0.5359 GB, free: 9.012 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.055e-05/0.343, allocations: 3.953 kB / 0.5359 GB, free: 9.008 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.993e-05/0.343, allocations: 20.39 kB / 0.5359 GB, free: 8.984 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.3432, allocations: 316.2 kB / 0.5362 GB, free: 8.668 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.19e-05/0.3432, allocations: 1.375 kB / 0.5362 GB, free: 8.668 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.186e-06/0.3432, allocations: 6.75 kB / 0.5362 GB, free: 8.664 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.121e-05/0.3433, allocations: 60.39 kB / 0.5363 GB, free: 8.594 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.3433, allocations: 5.312 kB / 0.5363 GB, free: 8.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.207e-05/0.3434, allocations: 72.95 kB / 0.5364 GB, free: 8.516 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.323e-05/0.3434, allocations: 31.2 kB / 0.5364 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.3434, allocations: 0 / 0.5364 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.3435, allocations: 5.047 kB / 0.5364 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.446e-05/0.3435, allocations: 0 / 0.5364 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.3435, allocations: 0 / 0.5364 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.529e-05/0.3435, allocations: 5.219 kB / 0.5364 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.3435, allocations: 1.031 kB / 0.5364 GB, free: 8.477 MB / 398.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.0001029/0.3436, allocations: 146.7 kB / 0.5365 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.3437, allocations: 0 / 0.5365 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.355e-05/0.3437, allocations: 4.031 kB / 0.5365 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.3437, allocations: 1.062 kB / 0.5365 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.3437, allocations: 0 / 0.5365 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.3437, allocations: 0 / 0.5365 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002946/0.344, allocations: 302.5 kB / 0.5368 GB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.344, allocations: 1.031 kB / 0.5368 GB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.477e-06/0.344, allocations: 3.938 kB / 0.5368 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.344, allocations: 5.047 kB / 0.5368 GB, free: 7.969 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.344, allocations: 4.953 kB / 0.5368 GB, free: 7.965 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.3441, allocations: 4 kB / 0.5368 GB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3441, allocations: 1.062 kB / 0.5368 GB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001572/0.3442, allocations: 171.2 kB / 0.537 GB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.364e-05/0.3443, allocations: 81.14 kB / 0.5371 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.3443, allocations: 1.125 kB / 0.5371 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.986e-05/0.3443, allocations: 1.094 kB / 0.5371 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.425e-05/0.3444, allocations: 1.031 kB / 0.5371 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.3444, allocations: 5.062 kB / 0.5371 GB, free: 7.684 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.469e-05/0.3444, allocations: 75.28 kB / 0.5372 GB, free: 7.609 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3444, allocations: 0 / 0.5372 GB, free: 7.609 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005434/0.345, allocations: 135.7 kB / 0.5373 GB, free: 7.57 MB / 398.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.001218/0.3462, allocations: 0.9147 MB / 0.5382 GB, free: 6.773 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001294/0.3463, allocations: 60.38 kB / 0.5382 GB, free: 6.711 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3463, allocations: 3.938 kB / 0.5383 GB, free: 6.707 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.777e-05/0.3464, allocations: 59.91 kB / 0.5383 GB, free: 6.641 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001936/0.3466, allocations: 2.031 kB / 0.5383 GB, free: 6.641 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.348, allocations: 1.2 MB / 0.5395 GB, free: 5.414 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004072/0.3484, allocations: 0.675 MB / 0.5401 GB, free: 4.715 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.271e-05/0.3484, allocations: 4.062 kB / 0.5401 GB, free: 4.711 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.296e-05/0.3485, allocations: 9.844 kB / 0.5402 GB, free: 4.703 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3485, allocations: 0 / 0.5402 GB, free: 4.703 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03185/0.3803, allocations: 4.535 MB / 0.5446 GB, free: 2.289 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.367/8.747, allocations: 4.781 kB / 0.5446 GB, free: 2.289 MB / 398.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