Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00175/0.00175, allocations: 104.8 kB / 15.98 MB, free: 6.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001871/0.001871, allocations: 192 kB / 16.9 MB, free: 6.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.645/1.645, allocations: 205.1 MB / 222.8 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3575/0.3575, allocations: 43.51 MB / 313.6 MB, free: 8.438 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 64.47 kB / 382.3 MB, free: 8.516 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1308, allocations: 57.79 MB / 440.1 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002112/0.133, allocations: 0.5659 MB / 440.7 MB, free: 14.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002875/0.1359, allocations: 2.02 MB / 442.7 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.344e-05/0.1359, allocations: 0 / 442.7 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.919e-05/0.1359, allocations: 0 / 442.7 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.51e-06/0.136, allocations: 0 / 442.7 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001379/0.1374, allocations: 471 kB / 443.2 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.162e-05/0.1374, allocations: 0 / 443.2 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.288e-05/0.1375, allocations: 4 kB / 443.2 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.543e-05/0.1375, allocations: 0 / 443.2 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.617e-05/0.1375, allocations: 0 / 443.2 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.743e-06/0.1375, allocations: 0 / 443.2 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00101/0.1385, allocations: 0.6747 MB / 443.8 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.934e-06/0.1386, allocations: 0 / 443.8 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.279e-05/0.1386, allocations: 4 kB / 443.8 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006892/0.1393, allocations: 395.1 kB / 444.2 MB, free: 10.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1393, allocations: 0 / 444.2 MB, free: 10.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1393, allocations: 0 / 444.2 MB, free: 10.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.1393, allocations: 0 / 444.2 MB, free: 10.49 MB / 382.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.0004976/0.1398, allocations: 409.3 kB / 444.6 MB, free: 10.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.1399, allocations: 15.89 kB / 444.6 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.438e-05/0.1399, allocations: 42.64 kB / 444.7 MB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.553e-05/0.14, allocations: 0.9375 kB / 444.7 MB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.612e-05/0.1401, allocations: 160.4 kB / 444.8 MB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.1401, allocations: 4.375 kB / 444.8 MB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.732e-06/0.1401, allocations: 384 / 444.8 MB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.999e-05/0.1402, allocations: 37.83 kB / 444.9 MB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.1402, allocations: 0 / 444.9 MB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.646e-06/0.1402, allocations: 0 / 444.9 MB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.1403, allocations: 4 kB / 444.9 MB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.162e-05/0.1403, allocations: 11.92 kB / 444.9 MB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000221/0.1405, allocations: 228.9 kB / 445.1 MB, free: 9.438 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.435e-05/0.1406, allocations: 30.56 kB / 445.1 MB, free: 9.398 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.462e-05/0.1406, allocations: 8.922 kB / 445.2 MB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.247e-06/0.1406, allocations: 0 / 445.2 MB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.319e-05/0.1407, allocations: 64.27 kB / 445.2 MB, free: 9.309 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.1407, allocations: 0 / 445.2 MB, free: 9.309 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001906/0.1409, allocations: 71.33 kB / 445.3 MB, free: 9.227 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.059e-05/0.1409, allocations: 81.11 kB / 445.4 MB, free: 9.129 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.397e-05/0.141, allocations: 93.86 kB / 445.5 MB, free: 9.027 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.141, allocations: 25.7 kB / 445.5 MB, free: 8.996 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.44e-05/0.141, allocations: 80.14 kB / 445.6 MB, free: 8.914 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.688e-05/0.1411, allocations: 3.906 kB / 445.6 MB, free: 8.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.243e-05/0.1411, allocations: 17.84 kB / 445.6 MB, free: 8.887 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.1412, allocations: 310.8 kB / 445.9 MB, free: 8.574 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.425e-05/0.1413, allocations: 7.984 kB / 445.9 MB, free: 8.566 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.067e-06/0.1413, allocations: 4 kB / 445.9 MB, free: 8.562 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.897e-05/0.1413, allocations: 68.14 kB / 446 MB, free: 8.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1413, allocations: 3.938 kB / 446 MB, free: 8.477 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.655e-05/0.1414, allocations: 71.39 kB / 446 MB, free: 8.395 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.868e-05/0.1415, allocations: 33.8 kB / 446.1 MB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1415, allocations: 0 / 446.1 MB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.1415, allocations: 0 / 446.1 MB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.508e-05/0.1415, allocations: 0 / 446.1 MB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.1415, allocations: 4 kB / 446.1 MB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.516e-05/0.1415, allocations: 0 / 446.1 MB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-06/0.1416, allocations: 0 / 446.1 MB, free: 8.352 MB / 382.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 9.213e-05/0.1416, allocations: 143.5 kB / 446.2 MB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.113e-05/0.1417, allocations: 0 / 446.2 MB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.764e-05/0.1417, allocations: 11.11 kB / 446.2 MB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.1417, allocations: 3.984 kB / 446.2 MB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1417, allocations: 0 / 446.2 MB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.1417, allocations: 0 / 446.2 MB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002419/0.142, allocations: 300.2 kB / 446.5 MB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.142, allocations: 0 / 446.5 MB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.208e-06/0.142, allocations: 0 / 446.5 MB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.142, allocations: 0 / 446.5 MB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.142, allocations: 7.938 kB / 446.5 MB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.142, allocations: 4 kB / 446.5 MB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.142, allocations: 4.031 kB / 446.5 MB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001474/0.1422, allocations: 173.1 kB / 446.7 MB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.395e-05/0.1422, allocations: 81.11 kB / 446.8 MB, free: 7.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.651e-05/0.1423, allocations: 3.984 kB / 446.8 MB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.355e-05/0.1423, allocations: 0 / 446.8 MB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.587e-05/0.1423, allocations: 0 / 446.8 MB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.1423, allocations: 4 kB / 446.8 MB, free: 7.512 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.213e-05/0.1424, allocations: 79.31 kB / 446.9 MB, free: 7.434 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1424, allocations: 0 / 446.9 MB, free: 7.434 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004893/0.1429, allocations: 119.9 kB / 447 MB, free: 7.316 MB / 382.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.001252/0.1441, allocations: 0.909 MB / 447.9 MB, free: 6.379 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001537/0.1443, allocations: 67.34 kB / 448 MB, free: 6.301 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1443, allocations: 0 / 448 MB, free: 6.301 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.035e-05/0.1444, allocations: 63.39 kB / 448 MB, free: 6.227 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002098/0.1446, allocations: 128 / 448 MB, free: 6.227 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.1457, allocations: 1.211 MB / 449.2 MB, free: 4.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/0.146, allocations: 0.669 MB / 449.9 MB, free: 4.234 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.303e-05/0.146, allocations: 0 / 449.9 MB, free: 4.234 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.985e-05/0.146, allocations: 11.44 kB / 449.9 MB, free: 4.223 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.146, allocations: 0 / 449.9 MB, free: 4.223 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2248/0.3708, allocations: 4.266 MB / 454.2 MB, free: 49.23 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003119/0.3712, allocations: 223.6 kB / 454.4 MB, free: 48.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.332/2.703, allocations: 0 / 454.4 MB, free: 48.98 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches