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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007834/0.0007834, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008699/0.0008699, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8986/0.8986, allocations: 177.2 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo): time 0.02219/0.02219, allocations: 3.132 MB / 262.3 MB, free: 10.27 MB / 250.7 MB " [Timeout remaining time 180] Using package AdvancedNoise with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 2.275e-06/2.275e-06, allocations: 0 / 385.7 MB, free: 11.03 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.186e-05/2.414e-05, allocations: 2.281 kB / 385.7 MB, free: 11.03 MB / 314.7 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.003209/0.003233, allocations: 1.505 MB / 387.2 MB, free: 9.508 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002086/0.005319, allocations: 1.149 MB / 388.4 MB, free: 8.352 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.005455, allocations: 3.938 kB / 388.4 MB, free: 8.348 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001833/0.005638, allocations: 39.59 kB / 388.4 MB, free: 8.309 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 9.552e-05/0.005734, allocations: 19.84 kB / 388.5 MB, free: 8.289 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.000981/0.006714, allocations: 258.9 kB / 388.7 MB, free: 8.035 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003874/0.007102, allocations: 275.3 kB / 389 MB, free: 7.766 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.903e-05/0.007161, allocations: 13.8 kB / 389 MB, free: 7.75 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003454/0.007506, allocations: 135.7 kB / 389.1 MB, free: 7.617 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.007615, allocations: 63.8 kB / 389.2 MB, free: 7.555 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.289e-05/0.007648, allocations: 12 kB / 389.2 MB, free: 7.543 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004299/0.008078, allocations: 203.6 kB / 389.4 MB, free: 7.344 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.59e-05/0.008144, allocations: 31.84 kB / 389.4 MB, free: 7.312 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 8.84e-05/0.008233, allocations: 51.86 kB / 389.5 MB, free: 7.262 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005315/0.008764, allocations: 327 kB / 389.8 MB, free: 6.941 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.008768, allocations: 0 / 389.8 MB, free: 6.941 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.00877, allocations: 0 / 389.8 MB, free: 6.941 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.008776, allocations: 0 / 389.8 MB, free: 6.941 MB / 314.7 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.00229/0.01107, allocations: 2.148 MB / 391.9 MB, free: 4.746 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.01111, allocations: 8.031 kB / 391.9 MB, free: 4.738 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.528e-05/0.01117, allocations: 46.67 kB / 392 MB, free: 4.684 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005912/0.01176, allocations: 112.5 kB / 392.1 MB, free: 4.574 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/0.01203, allocations: 193.4 kB / 392.3 MB, free: 4.359 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.01205, allocations: 4.375 kB / 392.3 MB, free: 4.355 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.972e-05/0.01207, allocations: 12.38 kB / 392.3 MB, free: 4.344 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003666/0.01244, allocations: 351 kB / 392.7 MB, free: 3.977 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.01245, allocations: 192 / 392.7 MB, free: 3.977 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.01247, allocations: 8.125 kB / 392.7 MB, free: 3.969 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.01247, allocations: 0 / 392.7 MB, free: 3.969 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002883/0.01276, allocations: 299.2 kB / 393 MB, free: 3.664 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002772/0.01304, allocations: 201.5 kB / 393.1 MB, free: 3.422 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002668/0.0133, allocations: 304.6 kB / 393.4 MB, free: 3.094 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002158/0.01352, allocations: 273 kB / 393.7 MB, free: 2.809 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.113e-05/0.01353, allocations: 0 / 393.7 MB, free: 2.809 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004208/0.01395, allocations: 0.5876 MB / 394.3 MB, free: 2.156 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 1.773e-06/0.01395, allocations: 3.938 kB / 394.3 MB, free: 2.152 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008717/0.01482, allocations: 0.9371 MB / 395.2 MB, free: 1.172 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.01489, allocations: 148.5 kB / 395.4 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.01504, allocations: 211.1 kB / 395.6 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.01506, allocations: 29.7 kB / 395.6 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.247e-05/0.01511, allocations: 112.6 kB / 395.7 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.189e-05/0.01515, allocations: 59.52 kB / 395.8 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.753e-05/0.01522, allocations: 53.69 kB / 395.8 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.684e-05/0.01531, allocations: 326.8 kB / 396.2 MB, free: 192 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.01551, allocations: 223.5 kB / 396.4 MB, free: 15.95 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.01568, allocations: 235.8 kB / 396.6 MB, free: 15.71 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003556/0.01604, allocations: 460.4 kB / 397.1 MB, free: 15.23 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.01604, allocations: 0 / 397.1 MB, free: 15.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004512/0.01649, allocations: 0.5376 MB / 397.6 MB, free: 14.67 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.657e-05/0.01655, allocations: 83.38 kB / 397.7 MB, free: 14.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.01656, allocations: 0 / 397.7 MB, free: 14.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.01657, allocations: 3.984 kB / 397.7 MB, free: 14.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.208e-05/0.01666, allocations: 27.98 kB / 397.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.01667, allocations: 0 / 397.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.898e-05/0.01673, allocations: 15.91 kB / 397.7 MB, free: 14.53 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.393e-05/0.01678, allocations: 40.06 kB / 397.8 MB, free: 14.49 MB / 330.7 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.0001608/0.01694, allocations: 235.8 kB / 398 MB, free: 14.24 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.408e-05/0.01698, allocations: 31.78 kB / 398 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.824e-05/0.01701, allocations: 17.47 kB / 398 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.01701, allocations: 0 / 398 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.01701, allocations: 3.984 kB / 398 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.01702, allocations: 4 kB / 398.1 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002288/0.01725, allocations: 220.5 kB / 398.3 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.01725, allocations: 3.938 kB / 398.3 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.402e-05/0.01728, allocations: 4 kB / 398.3 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.01729, allocations: 4 kB / 398.3 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.106e-05/0.01731, allocations: 15.98 kB / 398.3 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.01731, allocations: 0 / 398.3 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.01731, allocations: 4 kB / 398.3 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000652/0.01796, allocations: 0.7697 MB / 399.1 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.721e-05/0.01806, allocations: 63.78 kB / 399.1 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.621e-05/0.01811, allocations: 23.98 kB / 399.2 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.408e-05/0.01816, allocations: 16 kB / 399.2 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.074e-05/0.01824, allocations: 23.91 kB / 399.2 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.731e-05/0.01829, allocations: 39.94 kB / 399.2 MB, free: 12.92 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.71e-05/0.01839, allocations: 144.6 kB / 399.4 MB, free: 12.78 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01839, allocations: 0 / 399.4 MB, free: 12.78 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002962/0.01868, allocations: 79.92 kB / 399.5 MB, free: 12.7 MB / 330.7 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.001355/0.02004, allocations: 1.486 MB / 400.9 MB, free: 11.21 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006297/0.02067, allocations: 0.7316 MB / 401.7 MB, free: 10.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.02067, allocations: 0 / 401.7 MB, free: 10.43 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003404/0.02101, allocations: 466 kB / 402.1 MB, free: 9.934 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002374/0.02125, allocations: 34.42 kB / 402.2 MB, free: 9.902 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003114/0.02436, allocations: 3.437 MB / 405.6 MB, free: 6.289 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.671e-05/0.02445, allocations: 114.9 kB / 405.7 MB, free: 6.156 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.775e-05/0.02451, allocations: 16.48 kB / 405.7 MB, free: 6.137 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.529e-05/0.02457, allocations: 56.42 kB / 405.8 MB, free: 6.082 MB / 330.7 MB Notification: Performance of SimCode: time 8.32e-07/0.02457, allocations: 0 / 405.8 MB, free: 6.082 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1606/0.1851, allocations: 6.937 MB / 412.7 MB, free: 38.11 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.167/7.352, allocations: 2.234 kB / 412.7 MB, free: 38.11 MB / 330.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.fmu > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.141613509505987] Failed to read output from testmodel.py, exit status != 0: 7.4371667224913836 7.449706298 7.438419158 Calling exit ...