Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.6792/0.6792, allocations: 150.8 MB / 166.7 MB, free: 15.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.293e-05/1.295e-05, allocations: 4 kB / 205.4 MB, free: 10.19 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1184, allocations: 31.98 MB / 237.4 MB, free: 5.434 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve): time 1.302/1.421, allocations: 294.4 MB / 0.5193 GB, free: 12.72 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.161/1.582, allocations: 185.5 MB / 0.7004 GB, free: 2.855 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001488/1.582, allocations: 4 kB / 0.7005 GB, free: 2.852 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002509/1.582, allocations: 99.39 kB / 0.7005 GB, free: 2.754 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002618/1.583, allocations: 154.8 kB / 0.7007 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2457/1.828, allocations: 8.832 MB / 0.7093 GB, free: 5.91 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005768/1.829, allocations: 0.5811 MB / 0.7099 GB, free: 5.91 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/1.829, allocations: 201.3 kB / 0.7101 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002504/1.829, allocations: 209.9 kB / 0.7103 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001923/1.83, allocations: 198.1 kB / 0.7105 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.57e-05/1.83, allocations: 15.97 kB / 0.7105 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02389/1.854, allocations: 20.16 MB / 0.7302 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.437e-05/1.854, allocations: 73.05 kB / 0.7302 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002721/1.854, allocations: 247.7 kB / 0.7305 GB, free: 5.773 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.007282/1.861, allocations: 6.751 MB / 0.7371 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/1.861, allocations: 0 / 0.7371 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.232e-06/1.861, allocations: 3.844 kB / 0.7371 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.076e-05/1.861, allocations: 0 / 0.7371 GB, free: 4.164 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.003337/1.865, allocations: 1.83 MB / 0.7389 GB, free: 2.938 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 2.98e-05/1.865, allocations: 7.75 kB / 0.7389 GB, free: 2.938 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.83e-05/1.865, allocations: 54.69 kB / 0.7389 GB, free: 2.91 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002199/1.865, allocations: 313.3 kB / 0.7392 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.124e-05/1.865, allocations: 58.55 kB / 0.7393 GB, free: 2.621 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.91e-05/1.865, allocations: 38.47 kB / 0.7393 GB, free: 2.617 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004857/1.865, allocations: 0.5105 MB / 0.7398 GB, free: 2.398 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/1.866, allocations: 0 / 0.7398 GB, free: 2.398 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.712e-05/1.866, allocations: 16.91 kB / 0.7398 GB, free: 2.398 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/1.866, allocations: 22.64 kB / 0.7398 GB, free: 2.395 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003385/1.866, allocations: 316.4 kB / 0.7401 GB, free: 2.363 MB / 0.5762 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.03129/1.897, allocations: 19.33 MB / 0.759 GB, free: 4.133 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005006/1.898, allocations: 299 kB / 0.7593 GB, free: 4.082 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/1.898, allocations: 171 kB / 0.7595 GB, free: 4.062 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2692/2.167, allocations: 151.8 MB / 0.9077 GB, free: 3.871 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003751/2.167, allocations: 267.3 kB / 0.9079 GB, free: 3.652 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=60): time 1.593e-06/2.168, allocations: 0 / 0.9079 GB, free: 3.652 MB / 0.7481 GB Notification: Performance of matching and sorting (n=60): time 0.002195/2.17, allocations: 0.9371 MB / 0.9088 GB, free: 2.902 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.177e-05/2.17, allocations: 164.9 kB / 0.909 GB, free: 2.711 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002965/2.17, allocations: 351.6 kB / 0.9093 GB, free: 2.426 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/2.17, allocations: 29.27 kB / 0.9094 GB, free: 2.395 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/2.17, allocations: 218.7 kB / 0.9096 GB, free: 2.227 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/2.17, allocations: 198.2 kB / 0.9098 GB, free: 2.055 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.713e-05/2.17, allocations: 56.42 kB / 0.9098 GB, free: 2.008 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001039/2.171, allocations: 349.2 kB / 0.9101 GB, free: 1.676 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001856/2.171, allocations: 131.7 kB / 0.9103 GB, free: 1.602 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/2.171, allocations: 224.5 kB / 0.9105 GB, free: 1.414 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002921/2.174, allocations: 1.079 MB / 0.9115 GB, free: 0.5195 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/2.174, allocations: 0 / 0.9115 GB, free: 0.5195 MB / 0.7481 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007265/2.175, allocations: 0.5918 MB / 0.9121 GB, free: 108 kB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.005e-05/2.175, allocations: 33.64 kB / 0.9122 GB, free: 68 kB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/2.175, allocations: 4 kB / 0.9122 GB, free: 64 kB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001573/2.176, allocations: 0.4961 MB / 0.9126 GB, free: 15.61 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.085e-05/2.176, allocations: 26.89 kB / 0.9127 GB, free: 15.58 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007284/2.177, allocations: 0.8444 MB / 0.9135 GB, free: 14.85 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002354/2.177, allocations: 56.89 kB / 0.9135 GB, free: 14.8 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.019e-05/2.177, allocations: 19.55 kB / 0.9136 GB, free: 14.78 MB / 0.7637 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (perteDP1.C2.b,perteDP1.C1.a,perteDP2.C2.b,perteDP2.C1.a,SwitchValve.C2.b,SwitchValve.C1.a,PuitsP1.C.a,SourceP1.C.b,$PRE.pulse.T0,pulse.yL.signal,pulse.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(5,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001968/2.178, allocations: 200.3 kB / 0.9138 GB, free: 14.6 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.363e-05/2.178, allocations: 35.53 kB / 0.9138 GB, free: 14.56 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001208/2.179, allocations: 0.9333 MB / 0.9147 GB, free: 13.84 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006761/2.18, allocations: 0.5489 MB / 0.9152 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/2.18, allocations: 2.906 kB / 0.9152 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/2.18, allocations: 0 / 0.9152 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001695/2.181, allocations: 1.415 MB / 0.9166 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/2.181, allocations: 0 / 0.9166 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/2.181, allocations: 46.61 kB / 0.9167 GB, free: 12.31 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001279/2.183, allocations: 0.4886 MB / 0.9171 GB, free: 11.87 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.7e-05/2.183, allocations: 11.38 kB / 0.9172 GB, free: 11.86 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006944/2.183, allocations: 0.8916 MB / 0.918 GB, free: 11.1 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/2.183, allocations: 0 / 0.918 GB, free: 11.1 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008945/2.184, allocations: 0.7068 MB / 0.9187 GB, free: 10.54 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001469/2.184, allocations: 185.2 kB / 0.9189 GB, free: 10.37 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.97e-05/2.185, allocations: 7.562 kB / 0.9189 GB, free: 10.36 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/2.185, allocations: 21.23 kB / 0.9189 GB, free: 10.35 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.748e-05/2.185, allocations: 35.55 kB / 0.919 GB, free: 10.32 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/2.185, allocations: 15.5 kB / 0.919 GB, free: 10.31 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002591/2.185, allocations: 309.2 kB / 0.9193 GB, free: 10.08 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1e-07/2.185, allocations: 0 / 0.9193 GB, free: 10.08 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.00304/2.188, allocations: 1.525 MB / 0.9208 GB, free: 8.652 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse.T0,pulse.yL.signal) * Number of discrete states: 3 (pulse.yL.signal,pulse.T0,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(5,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004749/2.193, allocations: 2.33 MB / 0.923 GB, free: 6.641 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0007996/2.194, allocations: 0.5558 MB / 0.9236 GB, free: 6.207 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/2.194, allocations: 0 / 0.9236 GB, free: 6.207 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0004585/2.194, allocations: 313.2 kB / 0.9239 GB, free: 5.969 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009199/2.195, allocations: 180.9 kB / 0.924 GB, free: 5.832 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0012/2.196, allocations: 1.201 MB / 0.9252 GB, free: 4.703 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003271/2.197, allocations: 0.8614 MB / 0.9261 GB, free: 3.812 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.845e-05/2.197, allocations: 39.11 kB / 0.9261 GB, free: 3.777 MB / 0.7637 GB Notification: Performance of SimCode: time 2.1e-07/2.197, allocations: 0 / 0.9261 GB, free: 3.777 MB / 0.7637 GB Notification: Performance of Templates: time 0.03331/2.23, allocations: 31.93 MB / 0.9573 GB, free: 4.023 MB / 0.795 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.makefile make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.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/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValveCalcHelperMain.o OMCppThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValveCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValveCalcHelperMain.o] Error 1