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.001184/0.001184, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001208/0.001208, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 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.2318/0.2318, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 71.89 kB / 480.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.37/0.3715, allocations: 62.44 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001647/0.3732, allocations: 0.4998 MB / 0.531 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002984/0.3762, allocations: 2.024 MB / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.685e-05/0.3763, allocations: 0 / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.68e-05/0.3763, allocations: 0 / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.523e-06/0.3763, allocations: 1.281 kB / 0.533 GB, free: 11.42 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.001511/0.3778, allocations: 0.496 MB / 0.5335 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.785e-05/0.3779, allocations: 9.359 kB / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.152e-05/0.378, allocations: 5.375 kB / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.878e-05/0.378, allocations: 1.375 kB / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.019e-05/0.378, allocations: 0 / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.891e-05/0.378, allocations: 1.375 kB / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001031/0.3791, allocations: 0.6311 MB / 0.5341 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.707e-06/0.3791, allocations: 0 / 0.5341 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.151e-05/0.3791, allocations: 5.344 kB / 0.5341 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006102/0.3797, allocations: 388.4 kB / 0.5345 GB, free: 10.54 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3797, allocations: 0 / 0.5345 GB, free: 10.54 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3797, allocations: 0 / 0.5345 GB, free: 10.54 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.3798, allocations: 1.156 kB / 0.5345 GB, free: 10.54 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.0005229/0.3803, allocations: 417.2 kB / 0.5349 GB, free: 10.1 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.3803, allocations: 8.594 kB / 0.5349 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.631e-05/0.3804, allocations: 31.81 kB / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.802e-05/0.3804, allocations: 6.125 kB / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.3806, allocations: 168.3 kB / 0.5351 GB, free: 9.855 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.3806, allocations: 1.438 kB / 0.5351 GB, free: 9.855 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.3806, allocations: 1.5 kB / 0.5351 GB, free: 9.855 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000119/0.3807, allocations: 37.12 kB / 0.5351 GB, free: 9.816 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.3807, allocations: 1.219 kB / 0.5351 GB, free: 9.816 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.696e-06/0.3807, allocations: 0 / 0.5351 GB, free: 9.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3808, allocations: 0 / 0.5351 GB, free: 9.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.683e-05/0.3808, allocations: 6.281 kB / 0.5351 GB, free: 9.812 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002542/0.381, allocations: 232.2 kB / 0.5353 GB, free: 9.539 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.98e-05/0.3811, allocations: 28.27 kB / 0.5354 GB, free: 9.508 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.85e-05/0.3812, allocations: 12.12 kB / 0.5354 GB, free: 9.496 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.107e-05/0.3812, allocations: 1.219 kB / 0.5354 GB, free: 9.496 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.469e-05/0.3812, allocations: 57.48 kB / 0.5354 GB, free: 9.426 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.093e-06/0.3812, allocations: 4 kB / 0.5354 GB, free: 9.422 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002271/0.3815, allocations: 74.61 kB / 0.5355 GB, free: 9.348 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/0.3815, allocations: 78.27 kB / 0.5356 GB, free: 9.254 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.039e-05/0.3816, allocations: 94.95 kB / 0.5357 GB, free: 9.152 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.3816, allocations: 25.7 kB / 0.5357 GB, free: 9.121 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.143e-05/0.3817, allocations: 84.14 kB / 0.5358 GB, free: 9.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.662e-05/0.3817, allocations: 1.219 kB / 0.5358 GB, free: 9.035 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.341e-05/0.3817, allocations: 19.95 kB / 0.5358 GB, free: 9.012 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3819, allocations: 316.2 kB / 0.5361 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.301e-05/0.3819, allocations: 1.219 kB / 0.5361 GB, free: 8.695 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.278e-06/0.3819, allocations: 6.719 kB / 0.5361 GB, free: 8.691 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.091e-05/0.382, allocations: 61.8 kB / 0.5362 GB, free: 8.621 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.382, allocations: 3.938 kB / 0.5362 GB, free: 8.617 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.801e-05/0.3821, allocations: 72.58 kB / 0.5362 GB, free: 8.543 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.027e-05/0.3821, allocations: 31.39 kB / 0.5363 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.3821, allocations: 1.219 kB / 0.5363 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.3821, allocations: 4.094 kB / 0.5363 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.573e-05/0.3822, allocations: 1.125 kB / 0.5363 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.3822, allocations: 0 / 0.5363 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.696e-05/0.3822, allocations: 1.156 kB / 0.5363 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.3822, allocations: 5.156 kB / 0.5363 GB, free: 8.504 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 8.793e-05/0.3823, allocations: 141.8 kB / 0.5364 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.303e-05/0.3823, allocations: 1.125 kB / 0.5364 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.657e-05/0.3824, allocations: 7.125 kB / 0.5364 GB, free: 8.348 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3824, allocations: 1.125 kB / 0.5364 GB, free: 8.348 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3824, allocations: 4 kB / 0.5364 GB, free: 8.344 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3824, allocations: 0 / 0.5364 GB, free: 8.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002722/0.3827, allocations: 306.5 kB / 0.5367 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3827, allocations: 0.9688 kB / 0.5367 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.497e-06/0.3827, allocations: 3.938 kB / 0.5367 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.3827, allocations: 5.078 kB / 0.5367 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.3827, allocations: 0 / 0.5367 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3827, allocations: 1 kB / 0.5367 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3827, allocations: 0 / 0.5367 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001268/0.3828, allocations: 171.7 kB / 0.5369 GB, free: 7.812 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.771e-05/0.3829, allocations: 78.3 kB / 0.537 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.3829, allocations: 4.906 kB / 0.537 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.369e-05/0.383, allocations: 0 / 0.537 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.049e-05/0.383, allocations: 1.156 kB / 0.537 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.383, allocations: 0.9688 kB / 0.537 GB, free: 7.715 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.767e-05/0.383, allocations: 76.31 kB / 0.537 GB, free: 7.641 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.383, allocations: 0 / 0.537 GB, free: 7.641 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005146/0.3836, allocations: 135.3 kB / 0.5372 GB, free: 7.602 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.001143/0.3847, allocations: 0.9231 MB / 0.5381 GB, free: 6.797 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001209/0.3849, allocations: 59.25 kB / 0.5381 GB, free: 6.734 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3849, allocations: 0 / 0.5381 GB, free: 6.734 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.107e-05/0.3849, allocations: 64.84 kB / 0.5382 GB, free: 6.664 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001893/0.3851, allocations: 4.406 kB / 0.5382 GB, free: 6.664 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.3862, allocations: 1.194 MB / 0.5394 GB, free: 5.445 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/0.3864, allocations: 0.6741 MB / 0.54 GB, free: 4.746 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.056e-05/0.3864, allocations: 1.312 kB / 0.54 GB, free: 4.746 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.876e-05/0.3865, allocations: 8.656 kB / 0.54 GB, free: 4.738 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3865, allocations: 1.469 kB / 0.54 GB, free: 4.738 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02723/0.4137, allocations: 4.533 MB / 0.5445 GB, free: 2.324 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.871/8.284, allocations: 3.156 kB / 0.5445 GB, free: 2.324 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