Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.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.001258/0.001258, allocations: 97.88 kB / 19.73 MB, free: 2.117 MB / 14.72 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.001496/0.001496, allocations: 218.7 kB / 23.03 MB, free: 4.922 MB / 14.72 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 1.511/1.511, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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.0424/0.0424, allocations: 3.934 MB / 317.2 MB, free: 15.12 MB / 254.1 MB " [Timeout remaining time 180] Using package AdvancedNoise with version 1.1.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.VaryingDistribution,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.VaryingDistribution,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AdvancedNoise requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001809/0.001809, allocations: 63.91 kB / 440.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1094, allocations: 54.15 MB / 494.6 MB, free: 5.422 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.003133/0.1125, allocations: 1.525 MB / 496.1 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002472/0.115, allocations: 1.102 MB / 497.2 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.664e-05/0.1151, allocations: 11.94 kB / 497.3 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001033/0.1152, allocations: 15.81 kB / 497.3 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.353e-05/0.1152, allocations: 15.86 kB / 497.3 MB, free: 2.73 MB / 350.1 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.0008043/0.116, allocations: 259.2 kB / 497.5 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002325/0.1163, allocations: 171.6 kB / 497.7 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.228e-05/0.1164, allocations: 9.312 kB / 497.7 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.1165, allocations: 75.69 kB / 497.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.377e-05/0.1166, allocations: 51.77 kB / 497.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.546e-05/0.1166, allocations: 12 kB / 497.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005096/0.1171, allocations: 291.5 kB / 498.1 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.175e-05/0.1171, allocations: 19.86 kB / 498.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.137e-05/0.1172, allocations: 43.78 kB / 498.2 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004261/0.1176, allocations: 291 kB / 498.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1176, allocations: 0 / 498.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1176, allocations: 0 / 498.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.1177, allocations: 0 / 498.5 MB, free: 1.527 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.001702/0.1194, allocations: 1.265 MB / 499.8 MB, free: 232 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.1194, allocations: 12.03 kB / 499.8 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.059e-05/0.1194, allocations: 4.188 kB / 499.8 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.222e-05/0.1194, allocations: 38.73 kB / 499.8 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003855/0.1198, allocations: 48.8 kB / 499.9 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002897/0.1201, allocations: 163 kB / 0.4883 GB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.1201, allocations: 4.375 kB / 0.4883 GB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.681e-05/0.1202, allocations: 12.38 kB / 0.4883 GB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004342/0.1206, allocations: 203.2 kB / 0.4885 GB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.1206, allocations: 0 / 0.4885 GB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.1206, allocations: 8 kB / 0.4885 GB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.1206, allocations: 0 / 0.4885 GB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004098/0.1211, allocations: 181.6 kB / 0.4887 GB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005587/0.1216, allocations: 319.7 kB / 0.489 GB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004397/0.122, allocations: 184.2 kB / 0.4892 GB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003007/0.1223, allocations: 166.5 kB / 0.4893 GB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.1224, allocations: 112 / 0.4893 GB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004786/0.1228, allocations: 334 kB / 0.4896 GB, free: 14.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.283e-06/0.1228, allocations: 0 / 0.4896 GB, free: 14.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.001193/0.124, allocations: 0.5571 MB / 0.4902 GB, free: 13.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.246e-05/0.1241, allocations: 89.09 kB / 0.4903 GB, free: 13.74 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002061/0.1243, allocations: 168.2 kB / 0.4904 GB, free: 13.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.1244, allocations: 29.7 kB / 0.4905 GB, free: 13.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.434e-05/0.1244, allocations: 100.5 kB / 0.4906 GB, free: 13.42 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.325e-05/0.1245, allocations: 35.69 kB / 0.4906 GB, free: 13.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.908e-05/0.1246, allocations: 45.69 kB / 0.4906 GB, free: 13.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.1247, allocations: 330.8 kB / 0.4909 GB, free: 13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002784/0.125, allocations: 137.6 kB / 0.4911 GB, free: 12.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002678/0.1253, allocations: 137.6 kB / 0.4912 GB, free: 12.72 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005188/0.1258, allocations: 280.1 kB / 0.4915 GB, free: 12.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1258, allocations: 0 / 0.4915 GB, free: 12.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006821/0.1265, allocations: 350.4 kB / 0.4918 GB, free: 12.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.824e-05/0.1266, allocations: 45.69 kB / 0.4919 GB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1266, allocations: 8 kB / 0.4919 GB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.1266, allocations: 0 / 0.4919 GB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/0.1267, allocations: 31.97 kB / 0.4919 GB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.1267, allocations: 3.938 kB / 0.4919 GB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.1269, allocations: 19.88 kB / 0.4919 GB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.055e-05/0.1269, allocations: 19.97 kB / 0.4919 GB, free: 11.94 MB / 366.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: 14 (globalSeed.seed,discreteNoise.actualGlobalSeed,discreteNoise.localSeed,globalSeed.id_impure,discreteNoise.r,discreteNoise.bufferStartTime,discreteNoise.buffer[2],discreteNoise.buffer[1],discreteNoise.state[4],discreteNoise.state[3],discreteNoise.state[2],discreteNoise.state[1],$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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.0002196/0.1271, allocations: 191.3 kB / 0.4921 GB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.321e-05/0.1272, allocations: 15.95 kB / 0.4921 GB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.69e-05/0.1272, allocations: 13.47 kB / 0.4921 GB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.1272, allocations: 0 / 0.4921 GB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1272, allocations: 4 kB / 0.4921 GB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.1272, allocations: 0 / 0.4921 GB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002171/0.1275, allocations: 180.5 kB / 0.4923 GB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1275, allocations: 0 / 0.4923 GB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.1276, allocations: 15.98 kB / 0.4923 GB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.113e-06/0.1276, allocations: 0 / 0.4923 GB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.638e-05/0.1276, allocations: 7.984 kB / 0.4923 GB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1276, allocations: 0 / 0.4923 GB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1276, allocations: 8 kB / 0.4924 GB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001226/0.1288, allocations: 0.6696 MB / 0.493 GB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.133e-05/0.1288, allocations: 7.984 kB / 0.493 GB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.544e-05/0.1289, allocations: 11.98 kB / 0.493 GB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.129, allocations: 11.98 kB / 0.493 GB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.16e-05/0.1291, allocations: 11.98 kB / 0.493 GB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.144e-05/0.1291, allocations: 32.03 kB / 0.4931 GB, free: 10.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001056/0.1292, allocations: 120.9 kB / 0.4932 GB, free: 10.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1292, allocations: 0 / 0.4932 GB, free: 10.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004046/0.1296, allocations: 91.8 kB / 0.4933 GB, free: 10.46 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (continuousMean.mu) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,discreteNoise.state[1],discreteNoise.state[2],discreteNoise.state[3],discreteNoise.state[4],discreteNoise.buffer[1],discreteNoise.buffer[2],discreteNoise.bufferStartTime,discreteNoise.r) * Number of discrete states: 10 (discreteNoise.buffer[2],discreteNoise.buffer[1],discreteNoise.r,discreteNoise.bufferStartTime,discreteNoise.state[4],discreteNoise.state[3],discreteNoise.state[2],discreteNoise.state[1],$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * 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.002216/0.1318, allocations: 1.372 MB / 0.4946 GB, free: 9.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008022/0.1326, allocations: 422.6 kB / 0.495 GB, free: 8.652 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1326, allocations: 0 / 0.495 GB, free: 8.652 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004077/0.133, allocations: 260.9 kB / 0.4953 GB, free: 8.379 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002229/0.1333, allocations: 19.94 kB / 0.4953 GB, free: 8.359 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003833/0.1371, allocations: 2.507 MB / 0.4977 GB, free: 5.742 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.577e-05/0.1372, allocations: 93.05 kB / 0.4978 GB, free: 5.633 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.756e-05/0.1373, allocations: 16.42 kB / 0.4978 GB, free: 5.617 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.801e-05/0.1373, allocations: 39.42 kB / 0.4979 GB, free: 5.578 MB / 366.1 MB Notification: Performance of SimCode: time 8.22e-07/0.1373, allocations: 0 / 0.4979 GB, free: 5.578 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03441/0.1717, allocations: 5.23 MB / 0.503 GB, free: 468 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/11.94, allocations: 15.98 kB / 0.503 GB, free: 452 kB / 366.1 MB " [Timeout remaining time 648] (rm -f AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution.fmu > AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.741308600991033] Failed to read output from testmodel.py, exit status != 0: 12.121231612050906 12.139733863 12.018467354 Calling exit ...