Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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) 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) Running command: translateModel(Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG") translateModel(Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 185.7 kB / 15.98 MB, free: 5.789 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.547/1.547, allocations: 222.9 MB / 239.6 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001002, allocations: 86.22 kB / 289.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.4287/0.4287, allocations: 36.67 MB / 376.7 MB, free: 41.37 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 63.91 kB / 446.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1316, allocations: 58.91 MB / 0.4935 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG): time 0.3422/0.4739, allocations: 120.3 MB / 0.6109 GB, free: 2.094 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.05457/0.5285, allocations: 49.58 MB / 0.6594 GB, free: 352 kB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004005/0.5325, allocations: 75.38 kB / 0.6594 GB, free: 276 kB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003817/0.5364, allocations: 0.8704 MB / 0.6603 GB, free: 15.39 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01614/0.5526, allocations: 4.478 MB / 0.6647 GB, free: 10.89 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01756/0.5702, allocations: 4.555 MB / 0.6691 GB, free: 6.316 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.007785/0.578, allocations: 6.215 MB / 0.6752 GB, free: 84 kB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3254/0.9035, allocations: 1.057 MB / 0.6762 GB, free: 5.34 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005397/0.909, allocations: 1.36 MB / 0.6775 GB, free: 5.34 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004603/0.9136, allocations: 1.465 MB / 0.679 GB, free: 5.336 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005714/0.9142, allocations: 87.5 kB / 0.6791 GB, free: 5.336 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01847/0.9327, allocations: 6.292 MB / 0.6852 GB, free: 5.328 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00109/0.9338, allocations: 441 kB / 0.6856 GB, free: 5.328 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001573/0.9354, allocations: 0.7769 MB / 0.6864 GB, free: 5.328 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02271/0.9581, allocations: 7.235 MB / 0.6934 GB, free: 5.172 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.9582, allocations: 1.75 kB / 0.6934 GB, free: 5.172 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.716e-06/0.9582, allocations: 0 / 0.6934 GB, free: 5.172 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.694e-05/0.9583, allocations: 2.062 kB / 0.6934 GB, free: 5.172 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.007881/0.9661, allocations: 2.669 MB / 0.6961 GB, free: 20.05 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.9662, allocations: 10.39 kB / 0.6961 GB, free: 20.05 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003844/0.9666, allocations: 151.3 kB / 0.6962 GB, free: 19.98 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001594/0.9682, allocations: 0.9325 MB / 0.6971 GB, free: 19.62 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.898e-05/0.9683, allocations: 79.33 kB / 0.6972 GB, free: 19.62 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001687/0.9685, allocations: 102.8 kB / 0.6973 GB, free: 19.62 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002643/0.9711, allocations: 1.347 MB / 0.6986 GB, free: 19.46 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.9711, allocations: 0 / 0.6986 GB, free: 19.46 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.805e-05/0.9713, allocations: 40.06 kB / 0.6986 GB, free: 19.46 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.772e-05/0.9713, allocations: 24.69 kB / 0.6987 GB, free: 19.46 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002768/0.9741, allocations: 1.367 MB / 0.7 GB, free: 19.46 MB / 0.4948 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008276/0.9824, allocations: 4.904 MB / 0.7048 GB, free: 17.07 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002329/0.9847, allocations: 1.519 MB / 0.7063 GB, free: 16.75 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.9859, allocations: 0.6683 MB / 0.7069 GB, free: 16.73 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00421/0.9902, allocations: 2.86 MB / 0.7097 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.9902, allocations: 45.41 kB / 0.7098 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=66): time 2.695e-06/0.9902, allocations: 0 / 0.7098 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of matching and sorting (n=66): time 0.003788/0.994, allocations: 2.078 MB / 0.7118 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.9941, allocations: 58.56 kB / 0.7119 GB, free: 14.25 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001531/0.9956, allocations: 1.196 MB / 0.713 GB, free: 14.09 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 6.751e-05/0.9957, allocations: 42.8 kB / 0.7131 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003764/0.9961, allocations: 0.6259 MB / 0.7137 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000192/0.9963, allocations: 244.8 kB / 0.7139 GB, free: 13.63 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003091/0.9966, allocations: 209.7 kB / 0.7141 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.9968, allocations: 340.7 kB / 0.7144 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008358/0.9976, allocations: 0.5223 MB / 0.7149 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001038/0.9987, allocations: 0.8773 MB / 0.7158 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001863/1.001, allocations: 1.352 MB / 0.7171 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/1.001, allocations: 6.969 kB / 0.7171 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002866/1.003, allocations: 1.666 MB / 0.7188 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/1.003, allocations: 10.72 kB / 0.7188 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/1.003, allocations: 11.94 kB / 0.7188 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000416/1.004, allocations: 195.9 kB / 0.719 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009169/1.005, allocations: 235.3 kB / 0.7192 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00159/1.006, allocations: 2.778 MB / 0.7219 GB, free: 9.703 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001531/1.008, allocations: 175.5 kB / 0.7221 GB, free: 9.633 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/1.008, allocations: 53.73 kB / 0.7221 GB, free: 9.633 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (125): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * 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): 5 systems {(1,1), (1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005386/1.009, allocations: 343.1 kB / 0.7224 GB, free: 9.504 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000206/1.009, allocations: 120.5 kB / 0.7226 GB, free: 9.441 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002226/1.011, allocations: 1.327 MB / 0.7239 GB, free: 9.32 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/1.011, allocations: 6.281 kB / 0.7239 GB, free: 9.32 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/1.011, allocations: 0 / 0.7239 GB, free: 9.32 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/1.011, allocations: 7.422 kB / 0.7239 GB, free: 9.32 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001604/1.013, allocations: 1.132 MB / 0.725 GB, free: 9.102 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/1.013, allocations: 4 kB / 0.725 GB, free: 9.098 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006631/1.013, allocations: 127 kB / 0.7251 GB, free: 9.098 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003256/1.014, allocations: 182 kB / 0.7253 GB, free: 9.055 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.787e-05/1.014, allocations: 26.42 kB / 0.7253 GB, free: 9.051 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001582/1.015, allocations: 2.76 MB / 0.728 GB, free: 6.457 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/1.015, allocations: 2.969 kB / 0.728 GB, free: 6.457 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02405/1.039, allocations: 11.16 MB / 0.7389 GB, free: 4.828 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005069/1.04, allocations: 295 kB / 0.7392 GB, free: 4.664 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001368/1.04, allocations: 11.31 kB / 0.7392 GB, free: 4.664 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007595/1.041, allocations: 81.05 kB / 0.7393 GB, free: 4.648 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/1.041, allocations: 64.7 kB / 0.7393 GB, free: 4.648 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.695e-05/1.041, allocations: 25.05 kB / 0.7394 GB, free: 4.648 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0009847/1.042, allocations: 0.8286 MB / 0.7402 GB, free: 4.539 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.21e-07/1.042, allocations: 6.656 kB / 0.7402 GB, free: 4.539 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00614/1.048, allocations: 1.956 MB / 0.7421 GB, free: 4.156 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pulmonaryVeinsAndLeftAtrium.enthalpy,pulmonaryVeinsAndLeftAtrium.mass,pulmonaryArteries.enthalpy,pulmonaryArteries.mass,arteries.enthalpy,arteries.mass,veins.enthalpy,veins.mass,rightAtrium.enthalpy,rightAtrium.mass) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * 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): 5 systems {(1,1), (1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00605/1.054, allocations: 2.404 MB / 0.7444 GB, free: 2.387 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002581/1.057, allocations: 1.252 MB / 0.7456 GB, free: 1.473 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/1.057, allocations: 1.859 kB / 0.7456 GB, free: 1.473 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001068/1.058, allocations: 0.6034 MB / 0.7462 GB, free: 1.031 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002514/1.061, allocations: 434.6 kB / 0.7467 GB, free: 0.7109 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005276/1.066, allocations: 3.915 MB / 0.7505 GB, free: 13.13 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007362/1.067, allocations: 1.23 MB / 0.7517 GB, free: 11.89 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001191/1.068, allocations: 263.2 kB / 0.7519 GB, free: 11.64 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004371/1.068, allocations: 111.1 kB / 0.752 GB, free: 11.54 MB / 0.5105 GB Notification: Performance of SimCode: time 9.12e-07/1.068, allocations: 4 kB / 0.752 GB, free: 11.54 MB / 0.5105 GB Notification: Performance of Templates: time 0.07717/1.146, allocations: 56.27 MB / 0.807 GB, free: 3.961 MB / 0.5573 GB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.CardiovascularSystem_GCG.pipe 2>&1)