Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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/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/Physiolibrary 3.0.0/package.mo", uses=false) Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/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) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) Running command: translateModel(Physiolibrary.Fluid.Examples.Windkessel_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1306/0.1306, allocations: 15.28 MB / 31.05 MB, free: 4.363 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 105.3 kB / 36.03 MB, free: 3.434 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001828/0.001828, allocations: 201.1 kB / 41.12 MB, free: 7.523 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.645/1.645, allocations: 222.9 MB / 268.9 MB, free: 7.629 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.2804/0.2804, allocations: 23.35 MB / 346.6 MB, free: 0.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002078/0.002078, allocations: 104.3 kB / 418.1 MB, free: 30.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1406, allocations: 59.38 MB / 477.5 MB, free: 3.512 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:707:7-707:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:707:7-707:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.Windkessel_4element): time 0.4026/0.5432, allocations: 80.15 MB / 0.5446 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02284/0.5661, allocations: 22.3 MB / 0.5663 GB, free: 5.316 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001527/0.5677, allocations: 39.69 kB / 0.5664 GB, free: 5.277 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008479/0.5685, allocations: 207 kB / 0.5666 GB, free: 5.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007296/0.5758, allocations: 2.246 MB / 0.5688 GB, free: 3.672 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006862/0.5827, allocations: 1.84 MB / 0.5706 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002286/0.5851, allocations: 2.07 MB / 0.5726 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006253/0.5857, allocations: 407.5 kB / 0.573 GB, free: 208 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002918/0.5886, allocations: 1.044 MB / 0.574 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001098/0.5897, allocations: 0.5565 MB / 0.5745 GB, free: 14.62 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.66e-05/0.5898, allocations: 36 kB / 0.5746 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006607/0.5964, allocations: 1.852 MB / 0.5764 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002406/0.5967, allocations: 139.5 kB / 0.5765 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005047/0.5972, allocations: 314.6 kB / 0.5768 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00397/0.6012, allocations: 1.702 MB / 0.5785 GB, free: 10.58 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.6012, allocations: 0 / 0.5785 GB, free: 10.58 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.6012, allocations: 0 / 0.5785 GB, free: 10.58 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.176e-06/0.6012, allocations: 0 / 0.5785 GB, free: 10.58 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.002514/0.6038, allocations: 1.104 MB / 0.5795 GB, free: 9.426 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.6038, allocations: 16.58 kB / 0.5796 GB, free: 9.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001709/0.604, allocations: 59.25 kB / 0.5796 GB, free: 9.352 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000619/0.6046, allocations: 410.3 kB / 0.58 GB, free: 8.906 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.642e-05/0.6047, allocations: 36.94 kB / 0.58 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.848e-05/0.6048, allocations: 40 kB / 0.5801 GB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.6058, allocations: 0.5279 MB / 0.5806 GB, free: 8.285 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.6058, allocations: 0 / 0.5806 GB, free: 8.285 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.175e-05/0.6059, allocations: 16 kB / 0.5806 GB, free: 8.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.384e-05/0.6059, allocations: 16 kB / 0.5806 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009887/0.6069, allocations: 0.4918 MB / 0.5811 GB, free: 7.758 MB / 398.1 MB 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.003697/0.6106, allocations: 2.454 MB / 0.5835 GB, free: 5.059 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000949/0.6116, allocations: 437.1 kB / 0.5839 GB, free: 4.621 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004938/0.6121, allocations: 249.1 kB / 0.5842 GB, free: 4.375 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001551/0.6137, allocations: 1.122 MB / 0.5853 GB, free: 3.152 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005144/0.6142, allocations: 260.6 kB / 0.5855 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002029/0.6144, allocations: 51.52 kB / 0.5856 GB, free: 2.836 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 1.984e-06/0.6144, allocations: 4 kB / 0.5856 GB, free: 2.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=41): time 0.001823/0.6162, allocations: 0.8032 MB / 0.5863 GB, free: 1.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.6163, allocations: 63.34 kB / 0.5864 GB, free: 1.906 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004719/0.6168, allocations: 397.6 kB / 0.5868 GB, free: 1.508 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.633e-05/0.6168, allocations: 29.7 kB / 0.5868 GB, free: 1.473 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001959/0.617, allocations: 252.1 kB / 0.5871 GB, free: 1.223 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.6172, allocations: 141.9 kB / 0.5872 GB, free: 1.082 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001707/0.6173, allocations: 94.23 kB / 0.5873 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.6175, allocations: 362.7 kB / 0.5876 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003797/0.6179, allocations: 177 kB / 0.5878 GB, free: 460 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004331/0.6184, allocations: 275.4 kB / 0.5881 GB, free: 148 kB / 398.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: arteries.mass = arteries.tm_start (arteries.m_start[1] + arteries.massOffset = arteries.tm_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.00421/0.6226, allocations: 1.323 MB / 0.5893 GB, free: 14.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.6226, allocations: 0 / 0.5893 GB, free: 14.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001208/0.6238, allocations: 0.5947 MB / 0.5899 GB, free: 14.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.6238, allocations: 4 kB / 0.5899 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.6239, allocations: 4 kB / 0.5899 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002273/0.6241, allocations: 69.67 kB / 0.59 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004291/0.6245, allocations: 104 kB / 0.5901 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008017/0.6254, allocations: 1.12 MB / 0.5912 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004727/0.6258, allocations: 40.12 kB / 0.5912 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.917e-05/0.6259, allocations: 19.98 kB / 0.5913 GB, free: 12.75 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: arteries.mass = arteries.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.pulses.TD2,$PRE.pulses.HP,$PRE.pulses.T0,pulses.TD2,pulses.HP,pulses.b,pulses.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002977/0.6262, allocations: 173.7 kB / 0.5914 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.809e-05/0.6263, allocations: 47.44 kB / 0.5915 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001226/0.6275, allocations: 0.5954 MB / 0.592 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.6276, allocations: 8 kB / 0.5921 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.6276, allocations: 0 / 0.5921 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.6276, allocations: 7.922 kB / 0.5921 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001887/0.6295, allocations: 1.123 MB / 0.5932 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.6295, allocations: 3.938 kB / 0.5932 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003422/0.6298, allocations: 71.89 kB / 0.5932 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002029/0.6301, allocations: 73.7 kB / 0.5933 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.892e-05/0.6301, allocations: 15.98 kB / 0.5933 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008176/0.6309, allocations: 1.116 MB / 0.5944 GB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.6309, allocations: 0 / 0.5944 GB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/0.6324, allocations: 0.8018 MB / 0.5952 GB, free: 8.539 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002117/0.6326, allocations: 160.5 kB / 0.5953 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.808e-05/0.6327, allocations: 12 kB / 0.5954 GB, free: 8.352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003362/0.633, allocations: 31.97 kB / 0.5954 GB, free: 8.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.6331, allocations: 35.73 kB / 0.5954 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.558e-05/0.6332, allocations: 15.98 kB / 0.5954 GB, free: 8.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003386/0.6335, allocations: 287.1 kB / 0.5957 GB, free: 7.996 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6335, allocations: 0 / 0.5957 GB, free: 7.996 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001641/0.6352, allocations: 0.5656 MB / 0.5963 GB, free: 7.43 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (arteries.enthalpy,arteries.substanceMasses[1],inertia.q_in.m_flow) * Number of discrete variables: 5 (pulses.b,$whenCondition1,pulses.T0,pulses.HP,pulses.TD2) * Number of discrete states: 2 (pulses.T0,pulses.HP) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001648/0.6368, allocations: 0.8925 MB / 0.5971 GB, free: 6.523 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.6379, allocations: 462.3 kB / 0.5976 GB, free: 6.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.6379, allocations: 0 / 0.5976 GB, free: 6.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004632/0.6383, allocations: 227.5 kB / 0.5978 GB, free: 5.848 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.6395, allocations: 224.8 kB / 0.598 GB, free: 5.633 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.6417, allocations: 1.298 MB / 0.5993 GB, free: 4.305 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004501/0.6421, allocations: 0.8356 MB / 0.6001 GB, free: 3.441 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001897/0.6423, allocations: 67.39 kB / 0.6002 GB, free: 3.375 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.6423, allocations: 0 / 0.6002 GB, free: 3.375 MB / 414.1 MB Notification: Performance of Templates: time 0.02173/0.664, allocations: 17.02 MB / 0.6168 GB, free: 2.387 MB / 430.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.makefile make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPhysiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4elementCalcHelperMain.o OMCppPhysiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4elementCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPhysiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4elementCalcHelperMain.o] Error 1