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.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo", uses=false) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 108 kB / 15.63 MB, free: 112 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001845/0.001845, allocations: 194.8 kB / 16.56 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1319/0.1319, allocations: 3.887 MB / 294.3 MB, free: 3.211 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002136/0.002136, allocations: 59.91 kB / 355.6 MB, free: 3.418 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1128, allocations: 50.19 MB / 405.8 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.002522/0.1154, allocations: 0.7691 MB / 406.6 MB, free: 428 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009139/0.1163, allocations: 366.7 kB / 406.9 MB, free: 60 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.733e-05/0.1164, allocations: 4 kB / 406.9 MB, free: 56 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.25e-05/0.1165, allocations: 7.875 kB / 406.9 MB, free: 48 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.83e-05/0.1166, allocations: 11.92 kB / 407 MB, free: 36 kB / 334.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.000568/0.1172, allocations: 99.81 kB / 407.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001293/0.1173, allocations: 59.84 kB / 407.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.1174, allocations: 16.17 kB / 407.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.452e-05/0.1175, allocations: 27.69 kB / 407.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.947e-05/0.1175, allocations: 19.92 kB / 407.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.96e-05/0.1176, allocations: 8 kB / 407.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.1178, allocations: 87.84 kB / 407.3 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.967e-05/0.1178, allocations: 19.97 kB / 407.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.324e-05/0.1179, allocations: 23.81 kB / 407.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002663/0.1181, allocations: 131.6 kB / 407.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1181, allocations: 0 / 407.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1182, allocations: 0 / 407.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.886e-06/0.1182, allocations: 0 / 407.4 MB, free: 15.55 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.0005561/0.1187, allocations: 385.8 kB / 407.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.1188, allocations: 12.03 kB / 407.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.696e-05/0.1188, allocations: 42.73 kB / 407.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.966e-05/0.1189, allocations: 8.844 kB / 407.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001846/0.1191, allocations: 184.2 kB / 408.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/0.1191, allocations: 12.36 kB / 408.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.489e-05/0.1191, allocations: 12.28 kB / 408.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001795/0.1193, allocations: 69.98 kB / 408.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.1193, allocations: 0 / 408.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.1194, allocations: 4 kB / 408.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.1194, allocations: 7.984 kB / 408.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001107/0.1195, allocations: 27.98 kB / 408.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007481/0.1202, allocations: 340.6 kB / 408.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001726/0.1204, allocations: 54.61 kB / 408.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.944e-05/0.1205, allocations: 12.86 kB / 408.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.1205, allocations: 4 kB / 408.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002025/0.1207, allocations: 71.38 kB / 408.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 3.376e-06/0.1207, allocations: 3.984 kB / 408.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002691/0.121, allocations: 93.75 kB / 408.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.1211, allocations: 55.41 kB / 408.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.1212, allocations: 144.1 kB / 409 MB, free: 13.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.84e-05/0.1212, allocations: 29.7 kB / 409 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.793e-05/0.1213, allocations: 104 kB / 409.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.644e-05/0.1213, allocations: 11.81 kB / 409.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.746e-05/0.1214, allocations: 33.7 kB / 409.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.1215, allocations: 322.8 kB / 409.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.98e-05/0.1216, allocations: 27.98 kB / 409.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.789e-05/0.1217, allocations: 66.02 kB / 409.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003146/0.122, allocations: 129.8 kB / 409.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.122, allocations: 4 kB / 409.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000244/0.1223, allocations: 125.4 kB / 409.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.1223, allocations: 4 kB / 409.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1223, allocations: 4 kB / 409.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.1223, allocations: 8.156 kB / 409.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.281e-05/0.1224, allocations: 15.98 kB / 409.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.1224, allocations: 7.938 kB / 409.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.704e-05/0.1225, allocations: 11.91 kB / 409.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.1225, allocations: 4 kB / 409.8 MB, free: 12.87 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: faultTrigger.F:VARIABLE(min = 0.0 max = 1.0 fixed = true ) "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.r,faultTrigger.y,$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.0001661/0.1227, allocations: 130.9 kB / 410 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.318e-05/0.1227, allocations: 11.89 kB / 410 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.064e-05/0.1228, allocations: 12.38 kB / 410 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.1228, allocations: 4 kB / 410 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.1228, allocations: 3.938 kB / 410 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.1228, allocations: 0 / 410 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004635/0.1233, allocations: 350.4 kB / 410.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.1233, allocations: 4 kB / 410.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.439e-05/0.1233, allocations: 4 kB / 410.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.1233, allocations: 0 / 410.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.1234, allocations: 7.938 kB / 410.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.1234, allocations: 7.984 kB / 410.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1234, allocations: 0 / 410.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002848/0.1237, allocations: 191.4 kB / 410.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.774e-05/0.1237, allocations: 85 kB / 410.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.725e-05/0.1238, allocations: 11.97 kB / 410.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.268e-05/0.1238, allocations: 3.938 kB / 410.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.888e-05/0.1239, allocations: 11.92 kB / 410.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.1239, allocations: 4 kB / 410.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.777e-05/0.124, allocations: 105.7 kB / 410.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.124, allocations: 0 / 410.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003417/0.1243, allocations: 28 kB / 410.8 MB, free: 11.82 MB / 350.1 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,faultTrigger.y,faultTrigger.r,countFaults.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.000836/0.1252, allocations: 0.8144 MB / 411.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002052/0.1254, allocations: 71.83 kB / 411.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1254, allocations: 0 / 411.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.039e-05/0.1255, allocations: 23.98 kB / 411.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003156/0.1258, allocations: 30.83 kB / 411.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/0.1276, allocations: 1.54 MB / 413.3 MB, free: 9.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002858/0.1279, allocations: 0.6961 MB / 414 MB, free: 8.508 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.257e-05/0.1279, allocations: 16.67 kB / 414 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.913e-05/0.128, allocations: 31.42 kB / 414 MB, free: 8.461 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.128, allocations: 0 / 414 MB, free: 8.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02097/0.149, allocations: 2.663 MB / 416.7 MB, free: 5.848 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.028/6.177, allocations: 4 kB / 416.7 MB, free: 5.844 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_FaultTrigger.fmu > AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe 2>&1)