Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Blocks.BooleanPulseN.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.0008366/0.0008366, 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.0009133/0.0009133, allocations: 169.9 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.9285/0.9285, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo): time 0.05641/0.05641, allocations: 12.74 MB / 271.9 MB, free: 500 kB / 250.7 MB " [Timeout remaining time 180] Using package Bodylight with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/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(Bodylight.Blocks.BooleanPulseN,fileNamePrefix="Bodylight_Bodylight_Blocks_BooleanPulseN",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Bodylight.Blocks.BooleanPulseN,fileNamePrefix="Bodylight_Bodylight_Blocks_BooleanPulseN",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 402.7 MB, free: 9.699 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.315e-05/2.486e-05, allocations: 2.281 kB / 402.7 MB, free: 9.695 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/Blocks.mo:1663:5-1664:39:writable] Warning: Parameter period has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(Bodylight.Blocks.BooleanPulseN): time 0.002083/0.002108, allocations: 1.324 MB / 404 MB, free: 8.367 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005656/0.002674, allocations: 426.9 kB / 404.4 MB, free: 7.945 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.626e-05/0.0027, allocations: 0 / 404.4 MB, free: 7.945 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.398e-05/0.002724, allocations: 0 / 404.4 MB, free: 7.945 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.527e-05/0.002799, allocations: 7.938 kB / 404.4 MB, free: 7.938 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001274/0.002926, allocations: 19.86 kB / 404.5 MB, free: 7.918 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 6.019e-05/0.002987, allocations: 27.86 kB / 404.5 MB, free: 7.891 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.016e-05/0.003027, allocations: 3.984 kB / 404.5 MB, free: 7.887 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.505e-05/0.003082, allocations: 15.98 kB / 404.5 MB, free: 7.871 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.232e-05/0.003134, allocations: 4 kB / 404.5 MB, free: 7.867 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.781e-05/0.003152, allocations: 0 / 404.5 MB, free: 7.867 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.937e-06/0.003161, allocations: 7.938 kB / 404.5 MB, free: 7.859 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.052e-05/0.003181, allocations: 11.92 kB / 404.5 MB, free: 7.848 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.095e-05/0.003212, allocations: 4 kB / 404.5 MB, free: 7.844 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.839e-05/0.003291, allocations: 19.97 kB / 404.6 MB, free: 7.824 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.003296, allocations: 11.92 kB / 404.6 MB, free: 7.812 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.003297, allocations: 0 / 404.6 MB, free: 7.812 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.003302, allocations: 0 / 404.6 MB, free: 7.812 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004892/0.003791, allocations: 266.3 kB / 404.8 MB, free: 7.523 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.00384, allocations: 15.98 kB / 404.8 MB, free: 7.508 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.685e-05/0.003917, allocations: 38.69 kB / 404.9 MB, free: 7.461 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.087e-05/0.003948, allocations: 0.9375 kB / 404.9 MB, free: 7.461 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00011/0.004058, allocations: 105.8 kB / 405 MB, free: 7.332 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.004073, allocations: 8.375 kB / 405 MB, free: 7.324 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.294e-05/0.004086, allocations: 12.31 kB / 405 MB, free: 7.312 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.932e-05/0.004176, allocations: 42.23 kB / 405 MB, free: 7.266 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.004183, allocations: 192 / 405 MB, free: 7.266 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.004194, allocations: 8.125 kB / 405.1 MB, free: 7.258 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.004198, allocations: 0 / 405.1 MB, free: 7.258 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.659e-05/0.004235, allocations: 15.92 kB / 405.1 MB, free: 7.242 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003341/0.004569, allocations: 224 kB / 405.3 MB, free: 6.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.92e-05/0.004628, allocations: 22.58 kB / 405.3 MB, free: 6.949 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.104e-05/0.004649, allocations: 12.8 kB / 405.3 MB, free: 6.934 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.122e-06/0.004655, allocations: 4 kB / 405.3 MB, free: 6.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001028/0.004758, allocations: 67.41 kB / 405.4 MB, free: 6.852 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.004759, allocations: 4 kB / 405.4 MB, free: 6.848 MB / 378.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001402/0.004899, allocations: 57.69 kB / 405.4 MB, free: 6.785 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.004934, allocations: 55.39 kB / 405.5 MB, free: 6.719 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.535e-05/0.004989, allocations: 101.9 kB / 405.6 MB, free: 6.609 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.062e-05/0.005, allocations: 25.7 kB / 405.6 MB, free: 6.578 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.302e-05/0.005033, allocations: 92.12 kB / 405.7 MB, free: 6.484 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.057e-06/0.005042, allocations: 7.938 kB / 405.7 MB, free: 6.477 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.509e-05/0.005067, allocations: 17.72 kB / 405.7 MB, free: 6.453 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.545e-05/0.005143, allocations: 326.8 kB / 406.1 MB, free: 6.125 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.548e-05/0.005158, allocations: 4 kB / 406.1 MB, free: 6.121 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.238e-05/0.005181, allocations: 21.66 kB / 406.1 MB, free: 6.094 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.113e-05/0.005252, allocations: 45.83 kB / 406.1 MB, free: 6.043 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.005253, allocations: 0 / 406.1 MB, free: 6.043 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 6.809e-05/0.005321, allocations: 65.56 kB / 406.2 MB, free: 5.973 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/0.005332, allocations: 4 kB / 406.2 MB, free: 5.969 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.005338, allocations: 0 / 406.2 MB, free: 5.969 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.005349, allocations: 0 / 406.2 MB, free: 5.969 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.169e-05/0.005391, allocations: 7.984 kB / 406.2 MB, free: 5.961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.005397, allocations: 11.94 kB / 406.2 MB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.381e-05/0.005441, allocations: 7.938 kB / 406.2 MB, free: 5.941 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-06/0.005446, allocations: 0 / 406.2 MB, free: 5.941 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: count:DISCRETE(start = 0.0 fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.count,count,$whenCondition1,pulseStart,$PRE.pulseStart,y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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.0001069/0.005552, allocations: 117.8 kB / 406.3 MB, free: 5.816 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.988e-06/0.005562, allocations: 11.89 kB / 406.4 MB, free: 5.805 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.823e-05/0.005581, allocations: 7.688 kB / 406.4 MB, free: 5.797 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.005583, allocations: 3.938 kB / 406.4 MB, free: 5.793 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.005587, allocations: 3.938 kB / 406.4 MB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.00559, allocations: 0 / 406.4 MB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003332/0.005923, allocations: 136.7 kB / 406.5 MB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.005924, allocations: 384 / 406.5 MB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.957e-06/0.005928, allocations: 0 / 406.5 MB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.005931, allocations: 4 kB / 406.5 MB, free: 5.609 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.005938, allocations: 3.984 kB / 406.5 MB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.21e-07/0.005938, allocations: 0 / 406.5 MB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.00594, allocations: 4 kB / 406.5 MB, free: 5.602 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.041e-05/0.00602, allocations: 81.06 kB / 406.6 MB, free: 5.504 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.756e-06/0.006029, allocations: 3.953 kB / 406.6 MB, free: 5.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.171e-05/0.006041, allocations: 0 / 406.6 MB, free: 5.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.071e-05/0.006081, allocations: 11.98 kB / 406.6 MB, free: 5.488 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.901e-05/0.006121, allocations: 7.984 kB / 406.6 MB, free: 5.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.499e-06/0.006125, allocations: 0 / 406.6 MB, free: 5.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.998e-05/0.006155, allocations: 91.27 kB / 406.7 MB, free: 5.391 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006155, allocations: 0 / 406.7 MB, free: 5.391 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001197/0.006275, allocations: 7.938 kB / 406.7 MB, free: 5.383 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,count,y,pulseStart) * Number of discrete states: 1 (count) * 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: 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.0002754/0.00655, allocations: 0.628 MB / 407.3 MB, free: 4.723 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.697e-05/0.006627, allocations: 23.92 kB / 407.4 MB, free: 4.699 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.006629, allocations: 0 / 407.4 MB, free: 4.699 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.348e-05/0.006652, allocations: 8 kB / 407.4 MB, free: 4.691 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000161/0.006813, allocations: 16.45 kB / 407.4 MB, free: 4.676 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009052/0.007718, allocations: 1.182 MB / 408.6 MB, free: 3.402 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.061e-05/0.007759, allocations: 63.34 kB / 408.6 MB, free: 3.32 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 2.281e-05/0.007782, allocations: 0 / 408.6 MB, free: 3.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.347e-05/0.007825, allocations: 20.44 kB / 408.7 MB, free: 3.301 MB / 378.7 MB Notification: Performance of SimCode: time 6.41e-07/0.007826, allocations: 0 / 408.7 MB, free: 3.301 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08214/0.08996, allocations: 2.13 MB / 410.8 MB, free: 1.293 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.119/7.208, allocations: 4 kB / 410.8 MB, free: 1.289 MB / 378.7 MB " [Timeout remaining time 653] (rm -f Bodylight_Bodylight.Blocks.BooleanPulseN.pipe ; mkfifo Bodylight_Bodylight.Blocks.BooleanPulseN.pipe ; head -c 1048576 < Bodylight_Bodylight.Blocks.BooleanPulseN.pipe >> ../files/Bodylight_Bodylight.Blocks.BooleanPulseN.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Bodylight_Bodylight_Blocks_BooleanPulseN_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 ../Bodylight_Bodylight_Blocks_BooleanPulseN.fmu) > Bodylight_Bodylight.Blocks.BooleanPulseN.pipe 2>&1) [Timeout 52.5] (rm -f Bodylight_Bodylight.Blocks.BooleanPulseN_fmpy.pipe ; mkfifo Bodylight_Bodylight.Blocks.BooleanPulseN_fmpy.pipe ; head -c 1048576 < Bodylight_Bodylight.Blocks.BooleanPulseN_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Bodylight_Bodylight.Blocks.BooleanPulseN_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Bodylight_Bodylight.Blocks.BooleanPulseN_fmpy_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ../Bodylight_Bodylight_Blocks_BooleanPulseN.fmu) > Bodylight_Bodylight.Blocks.BooleanPulseN_fmpy.pipe 2>&1) [Timeout 52.5] fmpy timed out simulating the FMU [Calling sys.exit(0), Time elapsed: 9.459522241726518]