Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001668/0.001668, allocations: 110.6 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.597/1.597, allocations: 225.6 MB / 247.8 MB, free: 13.94 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.04729/0.04729, allocations: 3.946 MB / 306.6 MB, free: 6.027 MB / 238.1 MB " [Timeout remaining time 180] Using package AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(AdvancedNoise.Examples.TimeBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.TimeBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 71.89 kB / 426.1 MB, free: 21.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1252, allocations: 52.9 MB / 479 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002984/0.1282, allocations: 1.535 MB / 480.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002216/0.1304, allocations: 1.164 MB / 481.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.103e-05/0.1305, allocations: 3.938 kB / 481.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001976/0.1307, allocations: 39.67 kB / 481.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.406e-05/0.1308, allocations: 23.73 kB / 481.7 MB, free: 13.74 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.0008893/0.1317, allocations: 235.3 kB / 482 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000339/0.132, allocations: 251.5 kB / 482.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.404e-05/0.1321, allocations: 9.5 kB / 482.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002011/0.1323, allocations: 103.7 kB / 482.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.1324, allocations: 79.61 kB / 482.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.605e-05/0.1324, allocations: 19.94 kB / 482.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003311/0.1327, allocations: 175.8 kB / 482.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.487e-05/0.1328, allocations: 31.86 kB / 482.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.1329, allocations: 83.53 kB / 482.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004661/0.1334, allocations: 291.2 kB / 483 MB, free: 12.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1334, allocations: 0 / 483 MB, free: 12.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1334, allocations: 0 / 483 MB, free: 12.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.1334, allocations: 0 / 483 MB, free: 12.49 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.002779/0.1362, allocations: 2.266 MB / 485.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.305e-05/0.1362, allocations: 12.03 kB / 485.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.018e-05/0.1363, allocations: 42.73 kB / 485.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000735/0.137, allocations: 104.7 kB / 485.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003768/0.1374, allocations: 255.9 kB / 485.6 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.856e-05/0.1374, allocations: 8.375 kB / 485.7 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.675e-05/0.1375, allocations: 8.375 kB / 485.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004744/0.1379, allocations: 266 kB / 485.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.1379, allocations: 0 / 485.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.925e-05/0.138, allocations: 4 kB / 485.9 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.138, allocations: 0 / 485.9 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004062/0.1384, allocations: 223.8 kB / 486.1 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003223/0.1387, allocations: 262.2 kB / 486.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003481/0.139, allocations: 213.3 kB / 486.6 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003078/0.1394, allocations: 189.7 kB / 486.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.305e-05/0.1394, allocations: 0 / 486.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006262/0.14, allocations: 0.5245 MB / 487.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.342e-06/0.14, allocations: 0 / 487.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001292/0.1413, allocations: 0.7704 MB / 488.1 MB, free: 7.102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001418/0.1414, allocations: 160.5 kB / 488.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002425/0.1417, allocations: 211.1 kB / 488.5 MB, free: 6.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.08e-05/0.1417, allocations: 37.64 kB / 488.5 MB, free: 6.652 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.781e-05/0.1418, allocations: 116.7 kB / 488.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.2e-05/0.1419, allocations: 51.64 kB / 488.7 MB, free: 6.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.322e-05/0.142, allocations: 53.69 kB / 488.7 MB, free: 6.426 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1421, allocations: 326.8 kB / 489 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002479/0.1424, allocations: 140.2 kB / 489.2 MB, free: 5.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002312/0.1426, allocations: 139 kB / 489.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006406/0.1432, allocations: 468.4 kB / 489.8 MB, free: 5.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1432, allocations: 4 kB / 489.8 MB, free: 5.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006888/0.1439, allocations: 464.2 kB / 490.2 MB, free: 4.867 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001112/0.144, allocations: 95.38 kB / 490.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.144, allocations: 0 / 490.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.1441, allocations: 0 / 490.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.1442, allocations: 19.98 kB / 490.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.1442, allocations: 3.984 kB / 490.3 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.918e-05/0.1443, allocations: 15.89 kB / 490.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.308e-05/0.1444, allocations: 39.94 kB / 490.4 MB, free: 4.684 MB / 350.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: 26 (globalSeed.seed,timeBasedNoise1.actualGlobalSeed,timeBasedNoise1.localSeed,timeBasedNoise.actualGlobalSeed,timeBasedNoise.localSeed,globalSeed.id_impure,timeBasedNoise.r,timeBasedNoise.bufferStartTime,timeBasedNoise.buffer[2],timeBasedNoise.buffer[1],timeBasedNoise.state[4],timeBasedNoise.state[3],timeBasedNoise.state[2],timeBasedNoise.state[1],$whenCondition4,$whenCondition3,timeBasedNoise1.r,timeBasedNoise1.bufferStartTime,timeBasedNoise1.buffer[2],timeBasedNoise1.buffer[1],timeBasedNoise1.state[4],timeBasedNoise1.state[3],timeBasedNoise1.state[2],timeBasedNoise1.state[1],$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * 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.0003007/0.1447, allocations: 264.2 kB / 490.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.419e-05/0.1447, allocations: 27.86 kB / 490.7 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.115e-05/0.1448, allocations: 21.33 kB / 490.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1448, allocations: 0 / 490.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.1448, allocations: 7.938 kB / 490.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.1448, allocations: 4 kB / 490.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000299/0.1451, allocations: 273.4 kB / 491 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1451, allocations: 0 / 491 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.979e-05/0.1451, allocations: 11.98 kB / 491 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.1451, allocations: 0 / 491 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.35e-05/0.1452, allocations: 11.98 kB / 491 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.1452, allocations: 4 kB / 491 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.1452, allocations: 0 / 491 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.1462, allocations: 0.7001 MB / 491.7 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.1464, allocations: 136.9 kB / 491.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.698e-05/0.1465, allocations: 27.92 kB / 491.9 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.898e-05/0.1466, allocations: 15.98 kB / 491.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.603e-05/0.1467, allocations: 23.92 kB / 491.9 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.953e-05/0.1467, allocations: 39.92 kB / 491.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000142/0.1469, allocations: 143.2 kB / 492.1 MB, free: 2.867 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1469, allocations: 0 / 492.1 MB, free: 2.867 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003731/0.1472, allocations: 83.92 kB / 492.2 MB, free: 2.785 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition3,$whenCondition4,timeBasedNoise.state[1],timeBasedNoise.state[2],timeBasedNoise.state[3],timeBasedNoise.state[4],timeBasedNoise.buffer[1],timeBasedNoise.buffer[2],timeBasedNoise.bufferStartTime,timeBasedNoise.r,$whenCondition1,$whenCondition2,timeBasedNoise1.state[1],timeBasedNoise1.state[2],timeBasedNoise1.state[3],timeBasedNoise1.state[4],timeBasedNoise1.buffer[1],timeBasedNoise1.buffer[2],timeBasedNoise1.bufferStartTime,timeBasedNoise1.r) * Number of discrete states: 20 (timeBasedNoise1.buffer[2],timeBasedNoise1.buffer[1],timeBasedNoise1.r,timeBasedNoise1.bufferStartTime,timeBasedNoise1.state[4],timeBasedNoise1.state[3],timeBasedNoise1.state[2],timeBasedNoise1.state[1],$whenCondition2,$whenCondition1,timeBasedNoise.buffer[2],timeBasedNoise.buffer[1],timeBasedNoise.r,timeBasedNoise.bufferStartTime,timeBasedNoise.state[4],timeBasedNoise.state[3],timeBasedNoise.state[2],timeBasedNoise.state[1],$whenCondition4,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 2 * 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.001873/0.1491, allocations: 1.399 MB / 493.6 MB, free: 1.395 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008859/0.15, allocations: 0.5727 MB / 494.1 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.15, allocations: 0 / 494.1 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005291/0.1505, allocations: 406.6 kB / 494.5 MB, free: 384 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.1508, allocations: 31.92 kB / 494.6 MB, free: 352 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003978/0.1548, allocations: 2.966 MB / 497.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.1552, allocations: 0.7388 MB / 498.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.178e-05/0.1552, allocations: 12.55 kB / 498.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.658e-05/0.1553, allocations: 59.41 kB / 498.3 MB, free: 12.44 MB / 366.1 MB Notification: Performance of SimCode: time 1.172e-06/0.1553, allocations: 0 / 498.3 MB, free: 12.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03272/0.188, allocations: 5.941 MB / 0.4925 GB, free: 6.578 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.094/9.282, allocations: 10.95 kB / 0.4925 GB, free: 6.57 MB / 366.1 MB " [Timeout remaining time 651] (rm -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise_fmu --startTime=0 --stopTime=4 --stepSize=0.0016 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.fmu > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.072294109035283] Failed to read output from testmodel.py, exit status != 0: 9.353247605264187 9.376979867 9.239268012 Calling exit ...