Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.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.0007754/0.0007754, 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.0008339/0.0008339, 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.8841/0.8841, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.01511/0.01511, allocations: 3.142 MB / 262.3 MB, free: 10.28 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.FaultTrigger,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_FaultTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.FaultTrigger,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_FaultTrigger",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 385.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.311e-05/1.485e-05, allocations: 6.219 kB / 385.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.001352/0.001366, allocations: 0.7792 MB / 386.5 MB, free: 11.43 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005616/0.001928, allocations: 362.7 kB / 386.9 MB, free: 11.07 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.92e-05/0.001987, allocations: 7.938 kB / 386.9 MB, free: 11.07 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000103/0.00209, allocations: 3.938 kB / 386.9 MB, free: 11.06 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 4.907e-05/0.002139, allocations: 11.86 kB / 386.9 MB, free: 11.05 MB / 362.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.0004989/0.002638, allocations: 107.6 kB / 387 MB, free: 10.95 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001086/0.002747, allocations: 55.83 kB / 387.1 MB, free: 10.89 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.002847, allocations: 16.17 kB / 387.1 MB, free: 10.87 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.108e-05/0.002898, allocations: 27.92 kB / 387.1 MB, free: 10.84 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.719e-05/0.002945, allocations: 23.89 kB / 387.1 MB, free: 10.82 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.744e-05/0.002963, allocations: 4 kB / 387.1 MB, free: 10.82 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002076/0.00317, allocations: 123.7 kB / 387.2 MB, free: 10.7 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.162e-05/0.003192, allocations: 11.97 kB / 387.3 MB, free: 10.68 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.993e-05/0.003222, allocations: 19.92 kB / 387.3 MB, free: 10.66 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002157/0.003437, allocations: 135.6 kB / 387.4 MB, free: 10.53 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.00344, allocations: 11.94 kB / 387.4 MB, free: 10.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.003442, allocations: 3.984 kB / 387.4 MB, free: 10.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.608e-06/0.003447, allocations: 0 / 387.4 MB, free: 10.52 MB / 362.7 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.0004839/0.003931, allocations: 318.9 kB / 387.7 MB, free: 10.17 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.003974, allocations: 8.031 kB / 387.7 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.345e-05/0.004007, allocations: 34.75 kB / 387.8 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.024e-05/0.004037, allocations: 8.891 kB / 387.8 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001658/0.004203, allocations: 141.5 kB / 387.9 MB, free: 9.949 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.004221, allocations: 4.375 kB / 387.9 MB, free: 9.945 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.025e-05/0.004241, allocations: 8.375 kB / 387.9 MB, free: 9.938 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000139/0.00438, allocations: 80.34 kB / 388 MB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.595e-06/0.004388, allocations: 192 / 388 MB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.004397, allocations: 384 / 388 MB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.004403, allocations: 7.922 kB / 388 MB, free: 9.848 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.948e-05/0.004473, allocations: 27.98 kB / 388 MB, free: 9.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000733/0.005206, allocations: 295.8 kB / 388.3 MB, free: 9.488 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001091/0.005315, allocations: 50.61 kB / 388.4 MB, free: 9.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.64e-05/0.005341, allocations: 16.86 kB / 388.4 MB, free: 9.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.716e-06/0.00535, allocations: 3.938 kB / 388.4 MB, free: 9.406 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001027/0.005453, allocations: 75.38 kB / 388.5 MB, free: 9.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.005454, allocations: 0 / 388.5 MB, free: 9.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001894/0.005643, allocations: 97.55 kB / 388.6 MB, free: 9.219 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/0.005679, allocations: 55.41 kB / 388.6 MB, free: 9.152 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.23e-05/0.005761, allocations: 140.4 kB / 388.8 MB, free: 9.008 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.361e-05/0.005775, allocations: 33.69 kB / 388.8 MB, free: 8.969 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.361e-05/0.005818, allocations: 92.09 kB / 388.9 MB, free: 8.875 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/0.005835, allocations: 23.8 kB / 388.9 MB, free: 8.852 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.909e-05/0.005874, allocations: 37.7 kB / 389 MB, free: 8.809 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.186e-05/0.005956, allocations: 326.8 kB / 389.3 MB, free: 8.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.053e-05/0.005997, allocations: 23.98 kB / 389.3 MB, free: 8.457 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.603e-05/0.006053, allocations: 66 kB / 389.4 MB, free: 8.371 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002275/0.00628, allocations: 121.9 kB / 389.5 MB, free: 8.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.006282, allocations: 0 / 389.5 MB, free: 8.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00014/0.006423, allocations: 133.9 kB / 389.6 MB, free: 8.094 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.006435, allocations: 8.031 kB / 389.6 MB, free: 8.086 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.00644, allocations: 3.938 kB / 389.6 MB, free: 8.082 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.006453, allocations: 4 kB / 389.6 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.62e-05/0.006499, allocations: 19.98 kB / 389.6 MB, free: 8.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.006504, allocations: 4.062 kB / 389.6 MB, free: 8.055 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.562e-05/0.00654, allocations: 7.953 kB / 389.7 MB, free: 8.047 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/0.006549, allocations: 12 kB / 389.7 MB, free: 8.035 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: faultTrigger.F:VARIABLE(min = 0.0 max = 1.0 fixed = true stateSelect=StateSelect.always ) \"The current probability to have failed already\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.faultTrigger.y,$whenCondition1,countFaults.y,$PRE.countFaults.y,globalSeed.id_impure,globalSeed.seed,faultTrigger.y,faultTrigger.r,$whenCondition2,one.y,faultTrigger.reset,countFaults.local_set,countFaults.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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.000104/0.006653, allocations: 137.6 kB / 389.8 MB, free: 7.891 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.205e-06/0.006661, allocations: 3.953 kB / 389.8 MB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.239e-05/0.006683, allocations: 12.44 kB / 389.8 MB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.006685, allocations: 0 / 389.8 MB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.00669, allocations: 3.938 kB / 389.8 MB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.006693, allocations: 0 / 389.8 MB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002666/0.00696, allocations: 317.5 kB / 390.1 MB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.006961, allocations: 7.938 kB / 390.1 MB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.224e-05/0.006984, allocations: 0 / 390.1 MB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.006986, allocations: 4 kB / 390.1 MB, free: 7.496 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-06/0.006995, allocations: 7.984 kB / 390.1 MB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.006996, allocations: 4 kB / 390.2 MB, free: 7.484 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.006998, allocations: 3.938 kB / 390.2 MB, free: 7.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001585/0.007157, allocations: 187.5 kB / 390.3 MB, free: 7.281 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.238e-06/0.007166, allocations: 11.97 kB / 390.4 MB, free: 7.27 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.007179, allocations: 4 kB / 390.4 MB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.353e-05/0.007213, allocations: 48 / 390.4 MB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.053e-05/0.007243, allocations: 15.91 kB / 390.4 MB, free: 7.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.007255, allocations: 7.938 kB / 390.4 MB, free: 7.242 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.166e-05/0.007297, allocations: 102.4 kB / 390.5 MB, free: 7.145 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.007297, allocations: 0 / 390.5 MB, free: 7.145 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002147/0.007511, allocations: 43.98 kB / 390.5 MB, free: 7.102 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (faultTrigger.F) * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,countFaults.y,faultTrigger.r,faultTrigger.y) * Number of discrete states: 2 (faultTrigger.y,countFaults.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000568/0.008079, allocations: 0.811 MB / 391.3 MB, free: 6.297 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001391/0.008219, allocations: 68.03 kB / 391.4 MB, free: 6.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.008221, allocations: 4 kB / 391.4 MB, free: 6.227 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.427e-05/0.008255, allocations: 16 kB / 391.4 MB, free: 6.211 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001946/0.008449, allocations: 15.92 kB / 391.4 MB, free: 6.195 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.009552, allocations: 1.548 MB / 393 MB, free: 4.527 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.971e-05/0.009602, allocations: 83.5 kB / 393.1 MB, free: 4.426 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.272e-05/0.009645, allocations: 12.48 kB / 393.1 MB, free: 4.414 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.97e-05/0.009684, allocations: 28.48 kB / 393.1 MB, free: 4.387 MB / 362.7 MB Notification: Performance of SimCode: time 7.51e-07/0.009685, allocations: 0 / 393.1 MB, free: 4.387 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01695/0.02664, allocations: 3.466 MB / 396.6 MB, free: 1.039 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.814/6.84, allocations: 4.047 kB / 396.6 MB, free: 1.035 MB / 362.7 MB " [Timeout remaining time 653] (rm -f AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_FaultTrigger_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_FaultTrigger.fmu > AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.566320282407105] Failed to read output from testmodel.py, exit status != 0: 6.927253432571888 6.936159514 6.931071739 Calling exit ...