Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.SodiumSelenite.SodiumSelenite_Brodin2015_reference.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.0009304/0.0009304, allocations: 84.17 kB / 9.886 MB, free: 0.8008 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001415/0.002345, allocations: 435.8 kB / 10.31 MB, free: 384 kB / 10.45 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.0008047/0.0008047, allocations: 157.1 kB / 11.2 MB, free: 2.973 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009379/0.001743, allocations: 463.6 kB / 11.65 MB, free: 2.516 MB / 13.93 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.9045/0.9045, allocations: 177.1 MB / 189.5 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08592/0.9904, allocations: 53.66 MB / 243.2 MB, free: 15.57 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo): time 0.7524/0.7524, allocations: 291.2 MB / 0.5226 GB, free: 52.93 MB / 410.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02521/0.7776, allocations: 21.04 MB / 0.5431 GB, free: 31.96 MB / 410.7 MB " [Timeout remaining time 179] Using package Pharmacolibrary with version 26.11 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.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: translateModel(Pharmacolibrary.NonDrugs.T_toxic_hazardous.SodiumSelenite.SodiumSelenite_Brodin2015_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.SodiumSelenite.SodiumSelenite_Brodin2015_reference") translateModel(Pharmacolibrary.NonDrugs.T_toxic_hazardous.SodiumSelenite.SodiumSelenite_Brodin2015_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.SodiumSelenite.SodiumSelenite_Brodin2015_reference") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 0.5445 GB, free: 30.58 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.068e-05/2.233e-05, allocations: 14.19 kB / 0.5445 GB, free: 30.56 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.NonDrugs.T_toxic_hazardous.SodiumSelenite.SodiumSelenite_Brodin2015_reference): time 0.001935/0.001958, allocations: 1.93 MB / 0.5464 GB, free: 28.62 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005928/0.002551, allocations: 0.5754 MB / 0.5469 GB, free: 28.04 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.337e-05/0.002594, allocations: 4 kB / 0.5469 GB, free: 28.04 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 4.543e-05/0.002639, allocations: 15.8 kB / 0.547 GB, free: 28.02 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001913/0.002831, allocations: 63.53 kB / 0.547 GB, free: 27.96 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001153/0.002946, allocations: 71.77 kB / 0.5471 GB, free: 27.89 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001398/0.003086, allocations: 164 kB / 0.5472 GB, free: 27.73 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.244e-05/0.003118, allocations: 9.953 kB / 0.5473 GB, free: 27.72 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.003247, allocations: 115.7 kB / 0.5474 GB, free: 27.61 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.003401, allocations: 71.83 kB / 0.5474 GB, free: 27.54 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.978e-05/0.003421, allocations: 8 kB / 0.5474 GB, free: 27.53 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.168e-05/0.003443, allocations: 8 kB / 0.5474 GB, free: 27.52 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 4.082e-05/0.003483, allocations: 23.86 kB / 0.5475 GB, free: 27.5 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.003e-05/0.003523, allocations: 31.94 kB / 0.5475 GB, free: 27.46 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 9.784e-05/0.003621, allocations: 75.7 kB / 0.5476 GB, free: 27.39 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.304e-05/0.003634, allocations: 3.984 kB / 0.5476 GB, free: 27.39 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.003635, allocations: 0 / 0.5476 GB, free: 27.39 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.859e-06/0.003645, allocations: 0 / 0.5476 GB, free: 27.39 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004431/0.004088, allocations: 384.2 kB / 0.5479 GB, free: 26.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.667e-05/0.004115, allocations: 11.89 kB / 0.548 GB, free: 26.97 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.407e-05/0.004149, allocations: 16.92 kB / 0.548 GB, free: 26.96 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.00426, allocations: 158.8 kB / 0.5481 GB, free: 26.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.533e-05/0.004276, allocations: 4.375 kB / 0.5481 GB, free: 26.77 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.792e-05/0.004294, allocations: 12.38 kB / 0.5481 GB, free: 26.76 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001111/0.004405, allocations: 76.95 kB / 0.5482 GB, free: 26.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.004412, allocations: 3.938 kB / 0.5482 GB, free: 26.67 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.00442, allocations: 7.984 kB / 0.5482 GB, free: 26.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.004425, allocations: 4 kB / 0.5482 GB, free: 26.66 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.915e-05/0.004464, allocations: 15.98 kB / 0.5482 GB, free: 26.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000214/0.004678, allocations: 197.9 kB / 0.5484 GB, free: 26.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.55e-05/0.004774, allocations: 122.9 kB / 0.5485 GB, free: 26.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.539e-05/0.004799, allocations: 24.78 kB / 0.5486 GB, free: 26.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.004812, allocations: 4 kB / 0.5486 GB, free: 26.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.572e-05/0.004908, allocations: 98.22 kB / 0.5487 GB, free: 26.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 1.212e-06/0.004909, allocations: 0 / 0.5487 GB, free: 26.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=13): time 0.0001203/0.005029, allocations: 81.66 kB / 0.5487 GB, free: 26.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.895e-05/0.005048, allocations: 55.34 kB / 0.5488 GB, free: 26.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.709e-05/0.005105, allocations: 150.6 kB / 0.5489 GB, free: 25.85 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.005116, allocations: 29.7 kB / 0.549 GB, free: 25.81 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.474e-05/0.005141, allocations: 104.1 kB / 0.5491 GB, free: 25.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.089e-05/0.005162, allocations: 39.62 kB / 0.5491 GB, free: 25.67 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.822e-05/0.0052, allocations: 41.64 kB / 0.5491 GB, free: 25.62 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.035e-05/0.00523, allocations: 326.8 kB / 0.5495 GB, free: 25.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.161e-05/0.005262, allocations: 48.52 kB / 0.5495 GB, free: 25.24 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.547e-05/0.005307, allocations: 158.1 kB / 0.5497 GB, free: 25.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.166e-05/0.005369, allocations: 78.83 kB / 0.5497 GB, free: 24.96 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.005371, allocations: 0 / 0.5497 GB, free: 24.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 8.343e-05/0.005454, allocations: 151.8 kB / 0.5499 GB, free: 24.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.005477, allocations: 45.69 kB / 0.5499 GB, free: 24.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.496e-06/0.005481, allocations: 0 / 0.5499 GB, free: 24.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.775e-06/0.005489, allocations: 0 / 0.5499 GB, free: 24.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.414e-05/0.005583, allocations: 27.98 kB / 0.5499 GB, free: 24.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.194e-06/0.005585, allocations: 0 / 0.5499 GB, free: 24.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.391e-05/0.005649, allocations: 19.98 kB / 0.55 GB, free: 24.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.005656, allocations: 0 / 0.55 GB, free: 24.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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 4.453e-05/0.005701, allocations: 124.5 kB / 0.5501 GB, free: 24.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.276e-05/0.005713, allocations: 15.92 kB / 0.5501 GB, free: 24.55 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.226e-05/0.005806, allocations: 98.42 kB / 0.5502 GB, free: 24.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.005807, allocations: 0 / 0.5502 GB, free: 24.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.005808, allocations: 0 / 0.5502 GB, free: 24.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.005812, allocations: 3.062 kB / 0.5502 GB, free: 24.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.626e-05/0.005878, allocations: 106 kB / 0.5503 GB, free: 24.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.005879, allocations: 0 / 0.5503 GB, free: 24.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.814e-05/0.005947, allocations: 31.86 kB / 0.5503 GB, free: 24.29 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.315e-05/0.00596, allocations: 11.94 kB / 0.5503 GB, free: 24.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.005963, allocations: 3.938 kB / 0.5503 GB, free: 24.28 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.005973, allocations: 4 kB / 0.5503 GB, free: 24.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.005974, allocations: 4 kB / 0.5504 GB, free: 24.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.005975, allocations: 0 / 0.5504 GB, free: 24.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001142/0.006089, allocations: 130.7 kB / 0.5505 GB, free: 24.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.006107, allocations: 15.92 kB / 0.5505 GB, free: 24.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.446e-05/0.006152, allocations: 4 kB / 0.5505 GB, free: 24.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.406e-05/0.006186, allocations: 15.97 kB / 0.5505 GB, free: 24.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.006191, allocations: 4 kB / 0.5505 GB, free: 24.08 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.484e-05/0.006216, allocations: 43.11 kB / 0.5506 GB, free: 24.04 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006216, allocations: 0 / 0.5506 GB, free: 24.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001135/0.00633, allocations: 28 kB / 0.5506 GB, free: 24.01 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (q[1],qAbsorbed) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * 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 5.582e-05/0.006385, allocations: 92.39 kB / 0.5507 GB, free: 23.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001114/0.006497, allocations: 153.9 kB / 0.5508 GB, free: 23.74 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.006499, allocations: 0 / 0.5508 GB, free: 23.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.542e-05/0.006535, allocations: 33.59 kB / 0.5509 GB, free: 23.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001349/0.00667, allocations: 61.11 kB / 0.5509 GB, free: 23.65 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002567/0.009237, allocations: 366.3 kB / 0.5513 GB, free: 23.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.952e-05/0.009266, allocations: 71.83 kB / 0.5513 GB, free: 23.18 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.028e-05/0.009347, allocations: 13.5 kB / 0.5513 GB, free: 23.16 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.009447, allocations: 91.33 kB / 0.5514 GB, free: 23.07 MB / 410.7 MB Notification: Performance of SimCode: time 6.42e-07/0.009448, allocations: 0 / 0.5514 GB, free: 23.07 MB / 410.7 MB Notification: Performance of Templates: time 0.003279/0.01273, allocations: 2.74 MB / 0.5541 GB, free: 20.4 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.SodiumSelenite.SodiumSelenite_Brodin2015_reference.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.SodiumSelenite.SodiumSelenite_Brodin2015_reference.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.SodiumSelenite.SodiumSelenite_Brodin2015_reference.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.SodiumSelenite.SodiumSelenite_Brodin2015_reference.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.SodiumSelenite.SodiumSelenite_Brodin2015_reference.sim & ./Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.SodiumSelenite.SodiumSelenite_Brodin2015_reference -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.NonDrugs.T_toxic_hazardous.SodiumSelenite.SodiumSelenite_Brodin2015_reference.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.0977135356515646]