Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Hydraulic.Examples.Fernandez2013.PulsatileCirculation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0005582/0.0005582, allocations: 0 / 0, free: 0 / 0 " [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.0006988/0.0006988, allocations: 0 / 0, free: 0 / 0 " [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.3285/0.3285, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] 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.02345/0.02345, allocations: 0 / 0, free: 0 / 0 " [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.Hydraulic.Examples.Fernandez2013.PulsatileCirculation,fileNamePrefix="Bodylight_Bodylight_Hydraulic_Examples_Fernandez2013_PulsatileCirculation",fmuType="me_cs",version="3.0",platforms={"wasm"}) "" <> buildModelFMU(Bodylight.Hydraulic.Examples.Fernandez2013.PulsatileCirculation,fileNamePrefix="Bodylight_Bodylight_Hydraulic_Examples_Fernandez2013_PulsatileCirculation",fmuType="me_cs",version="3.0",platforms={"wasm"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.92e-07/9.92e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 3.059e-05/3.158e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Bodylight.Hydraulic.Examples.Fernandez2013.PulsatileCirculation): time 0.01091/0.01094, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.005149/0.01609, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.0006892/0.01678, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.001434/0.01821, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.004242/0.02246, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.002005/0.02446, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.003559/0.02802, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.0006225/0.02864, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.002248/0.03089, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.0009346/0.03182, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0001892/0.03201, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.0001746/0.03219, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.0002655/0.03245, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0005326/0.03299, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.001777/0.03476, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.000249/0.03501, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 6.953e-06/0.03502, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 2.36e-05/0.03504, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 195 * Number of variables: 195 Notification: Performance of Generate backend data structure: time 0.003486/0.03853, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0001707/0.0387, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003501/0.03905, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005374/0.03959, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.001471/0.04106, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003521/0.04141, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002555/0.04167, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.002152/0.04382, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 5.049e-05/0.04387, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001683/0.04404, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.314e-05/0.04406, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008345/0.04489, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004211/0.04911, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.05061, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.0004272/0.05104, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 8.917e-05/0.05113, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008876/0.05202, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=90): time 1.703e-05/0.05203, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=90): time 0.002917/0.05495, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 6.87e-05/0.05502, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006797/0.0557, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0001632/0.05586, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0003297/0.05619, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.000363/0.05655, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004115/0.05696, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 7.911e-05/0.05704, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003769/0.05742, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004158/0.05784, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.001409/0.05925, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-05/0.05926, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=118) (initialization): time 0.00218/0.06144, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 5.172e-05/0.0615, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-05/0.06152, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.0006131/0.06214, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.06326, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007121/0.07039, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.0714, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.07153, allocations: 0 / 0, free: 0 / 0 Warning: Assuming fixed start value for the following 14 variables: mitralValve.lastChange:DISCRETE(start = 0.0 unit = \"s\" fixed = true nominal = 60.0 ) type: Real aorticValve.lastChange:DISCRETE(start = 0.0 unit = \"s\" fixed = true nominal = 60.0 ) type: Real tricuspidValve.lastChange:DISCRETE(start = 0.0 unit = \"s\" fixed = true nominal = 60.0 ) type: Real pulmonaryValve.lastChange:DISCRETE(start = 0.0 unit = \"s\" fixed = true nominal = 60.0 ) type: Real timeVaryingElastanceRight.ts:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"duration of systole\" type: Real timeVaryingElastanceRight.t0:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"time of beginning of the cardiac cycle\" type: Real timeVaryingElastanceRight.HP:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"heart period\" type: Real timeVaryingElastanceLeft.ts:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"duration of systole\" type: Real timeVaryingElastanceLeft.t0:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"time of beginning of the cardiac cycle\" type: Real timeVaryingElastanceLeft.HP:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"heart period\" type: Real systemicInertia.q_in.q:VARIABLE(flow=true unit = \"m3/s\" fixed = true nominal = 1.6666666666666667e-8 ) \"Volume flow\" type: Real aorticInertia.q_in.q:VARIABLE(flow=true unit = \"m3/s\" fixed = true nominal = 1.6666666666666667e-8 ) \"Volume flow\" type: Real pulmonaryArterialInertia.q_in.q:VARIABLE(flow=true unit = \"m3/s\" fixed = true nominal = 1.6666666666666667e-8 ) \"Volume flow\" type: Real pulmonaryVeinsInertia.q_in.q:VARIABLE(flow=true unit = \"m3/s\" fixed = true nominal = 1.6666666666666667e-8 ) \"Volume flow\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.mitralValve.lastChange,mitralValve.lastChange,$PRE.aorticValve.lastChange,aorticValve.lastChange,$PRE.tricuspidValve.lastChange,tricuspidValve.lastChange,$PRE.pulmonaryValve.lastChange,pulmonaryValve.lastChange,$PRE.timeVaryingElastanceRight.ts,$PRE.timeVaryingElastanceRight.t0,$PRE.timeVaryingElastanceRight.HP,$PRE.timeVaryingElastanceLeft.ts,$PRE.timeVaryingElastanceLeft.t0,$PRE.timeVaryingElastanceLeft.HP,pulmonaryValve.open,tricuspidValve.open,aorticValve.open,mitralValve.open,$whenCondition1,$whenCondition2,timeVaryingElastanceRight.t0,timeVaryingElastanceRight.ts,timeVaryingElastanceRight.HP,timeVaryingElastanceLeft.t0,timeVaryingElastanceLeft.ts,timeVaryingElastanceLeft.HP) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,1), (1,5), (1,5), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.001066/0.07259, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004217/0.07302, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001964/0.07498, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.582e-05/0.07499, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.075, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.148e-05/0.07502, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/0.07659, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.45e-05/0.0766, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/0.07767, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 0.0005181/0.07819, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001595/0.07835, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007446/0.0858, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/0.0858, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002554/0.08836, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.0007266/0.08908, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003768/0.08946, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000543/0.09, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000394/0.0904, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001476/0.09055, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.0004593/0.091, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 2.959e-05/0.09103, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.001899/0.09293, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (pulmonaryVeinsInertia.q_in.q,pulmonaryArterialInertia.q_in.q,pulmonaryVeins.volume,leftVentricle.volume,aorta.volume,aorticInertia.q_in.q,arteries.volume,systemicInertia.q_in.q,rightVentricle.volume,pulmonaryArtery.volume,pulmonaryArterioles.volume,veins.volume) * Number of discrete variables: 16 (mitralValve.lastChange,aorticValve.lastChange,tricuspidValve.lastChange,pulmonaryValve.lastChange,$whenCondition2,$whenCondition1,mitralValve.open,aorticValve.open,tricuspidValve.open,pulmonaryValve.open,timeVaryingElastanceLeft.HP,timeVaryingElastanceLeft.t0,timeVaryingElastanceLeft.ts,timeVaryingElastanceRight.HP,timeVaryingElastanceRight.t0,timeVaryingElastanceRight.ts) * Number of discrete states: 6 (timeVaryingElastanceRight.ts,timeVaryingElastanceRight.t0,timeVaryingElastanceLeft.ts,timeVaryingElastanceLeft.t0,timeVaryingElastanceLeft.HP,timeVaryingElastanceRight.HP) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,1), (1,5), (1,1), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003167/0.0961, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.001851/0.09795, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 9.869e-06/0.09796, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.001117/0.09908, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001949/0.101, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009275/0.1103, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.1106, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.0005765/0.1111, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001969/0.1131, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.0009328/0.114, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU modelDescription.xml: time 0.005167/0.1192, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU model kernel: time 0.007512/0.1267, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU translated model: time 0.0965/0.2232, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU component link: time 2.905e-05/0.2233, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU precompile: time 3.52e-05/0.2233, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU write (0.2 MB unzipped): time 0.0004582/0.2237, allocations: 0 / 0, free: 0 / 0 Notification: FMU-only work: backend 0.002481, simCode 0.004606, templates 0.005115 Notification: Building FMU for platform 'wasm' (1/1). Notification: Finished FMU for platform 'wasm' (1/1). " [Timeout remaining time 660] cd("run_me") [Timeout 660] "" [Timeout remaining time 660] simulate(Bodylight.Hydraulic.Examples.Fernandez2013.PulsatileCirculation,startTime=0,stopTime=5,tolerance=1e-06,numberOfIntervals=2500,outputFormat="empty",variableFilter="",fileNamePrefix="Bodylight_Bodylight.Hydraulic.Examples.Fernandez2013.PulsatileCirculation",simflags="-abortSlowSimulation -alarm=240 -lv LOG_STATS -startTime=0 -stopTime=5 -tolerance=1e-06 -stepSize=0.002 -noemit -s fmi3:me",resimulateExecutable="../Bodylight_Bodylight_Hydraulic_Examples_Fernandez2013_PulsatileCirculation.fmu") [Timeout 240] "" [Timeout remaining time 240] cd("..") [Timeout 660] "" [Timeout remaining time 660] cd("run_cs") [Timeout 660] "" [Timeout remaining time 660] simulate(Bodylight.Hydraulic.Examples.Fernandez2013.PulsatileCirculation,startTime=0,stopTime=5,tolerance=1e-06,numberOfIntervals=2500,outputFormat="empty",variableFilter="",fileNamePrefix="Bodylight_Bodylight.Hydraulic.Examples.Fernandez2013.PulsatileCirculation",simflags="-abortSlowSimulation -alarm=240 -lv LOG_STATS -startTime=0 -stopTime=5 -tolerance=1e-06 -stepSize=0.002 -noemit -s fmi3:cs",resimulateExecutable="../Bodylight_Bodylight_Hydraulic_Examples_Fernandez2013_PulsatileCirculation.fmu") [Timeout 240] "" [Timeout remaining time 240] cd("..") [Timeout 660] "" [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 1.6745691150426865]