Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestIdealSwitchValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestIdealSwitchValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7577/0.7577, allocations: 150.8 MB / 166.1 MB, free: 15.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.47e-05/1.472e-05, allocations: 4 kB / 204.9 MB, free: 9.715 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1365, allocations: 31.98 MB / 236.8 MB, free: 5.277 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.Fluid.Examples.SimpleExamples.TestIdealSwitchValve): time 1.401/1.538, allocations: 295.7 MB / 0.52 GB, free: 12.11 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4356/1.974, allocations: 192.7 MB / 0.7083 GB, free: 3.648 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003739/1.974, allocations: 8.062 kB / 0.7083 GB, free: 3.648 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001175/1.974, allocations: 55.52 kB / 0.7083 GB, free: 3.648 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004295/1.975, allocations: 192.1 kB / 0.7085 GB, free: 3.648 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02422/1.999, allocations: 10.44 MB / 0.7187 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008147/2, allocations: 0.7616 MB / 0.7194 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003365/2, allocations: 348 kB / 0.7198 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002726/2, allocations: 257.5 kB / 0.72 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002442/2.001, allocations: 307.7 kB / 0.7203 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.858e-05/2.001, allocations: 35.38 kB / 0.7203 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03093/2.032, allocations: 22.51 MB / 0.7423 GB, free: 1.988 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002004/2.032, allocations: 120.5 kB / 0.7424 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003851/2.032, allocations: 356 kB / 0.7428 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02108/2.053, allocations: 11.67 MB / 0.7542 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/2.053, allocations: 0 / 0.7542 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.744e-06/2.053, allocations: 8.984 kB / 0.7542 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.192e-05/2.053, allocations: 0 / 0.7542 GB, free: 13.48 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 172 * Number of variables: 172 Notification: Performance of Generate backend data structure: time 0.004946/2.058, allocations: 2.255 MB / 0.7564 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/2.058, allocations: 8.625 kB / 0.7564 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000137/2.059, allocations: 114.3 kB / 0.7565 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/2.059, allocations: 82.06 kB / 0.7566 GB, free: 11.87 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004799/2.059, allocations: 427.4 kB / 0.757 GB, free: 11.56 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.44e-05/2.059, allocations: 77.66 kB / 0.7571 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.453e-05/2.059, allocations: 66.09 kB / 0.7571 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009018/2.06, allocations: 0.6788 MB / 0.7578 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/2.06, allocations: 3.984 kB / 0.7578 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.397e-05/2.06, allocations: 28.19 kB / 0.7578 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/2.06, allocations: 17.06 kB / 0.7578 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007863/2.061, allocations: 0.5604 MB / 0.7584 GB, free: 11.24 MB / 0.5919 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.008575/2.07, allocations: 7.414 MB / 0.7656 GB, free: 5.062 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006372/2.07, allocations: 357.5 kB / 0.766 GB, free: 5 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001831/2.071, allocations: 124.6 kB / 0.7661 GB, free: 4.984 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5644/2.635, allocations: 223.7 MB / 0.9846 GB, free: 451.9 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004806/2.635, allocations: 204.7 kB / 0.9848 GB, free: 451.9 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=35): time 2.835e-06/2.636, allocations: 2.188 kB / 0.9848 GB, free: 451.9 MB / 0.8106 GB Notification: Performance of matching and sorting (n=35): time 0.002746/2.638, allocations: 0.8395 MB / 0.9856 GB, free: 451.7 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.883e-05/2.638, allocations: 113.9 kB / 0.9857 GB, free: 451.6 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004858/2.639, allocations: 439.2 kB / 0.9861 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/2.639, allocations: 31.52 kB / 0.9862 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/2.639, allocations: 327.6 kB / 0.9865 GB, free: 451.3 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.48e-05/2.639, allocations: 118.1 kB / 0.9866 GB, free: 451.2 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.916e-05/2.639, allocations: 55.81 kB / 0.9866 GB, free: 451.2 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 5.685e-05/2.639, allocations: 346.9 kB / 0.987 GB, free: 450.9 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002038/2.639, allocations: 116.7 kB / 0.9871 GB, free: 450.9 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002539/2.64, allocations: 232.4 kB / 0.9873 GB, free: 450.8 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003977/2.644, allocations: 1.194 MB / 0.9885 GB, free: 450.5 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/2.644, allocations: 5.625 kB / 0.9885 GB, free: 450.5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008684/2.645, allocations: 0.5599 MB / 0.989 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/2.645, allocations: 39.05 kB / 0.989 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/2.645, allocations: 3.469 kB / 0.9891 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001505/2.646, allocations: 324.5 kB / 0.9894 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/2.646, allocations: 71.25 kB / 0.9894 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004484/2.647, allocations: 0.7077 MB / 0.9901 GB, free: 449.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002935/2.647, allocations: 53.91 kB / 0.9902 GB, free: 449.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.987e-05/2.647, allocations: 22.41 kB / 0.9902 GB, free: 449.8 MB / 0.8106 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: 15 * Number of states: 0 () * Number of discrete variables: 11 (SourceP1.C.ftype,$PRE.pulse.T0,PuitsP1.fluid,perteDP2.fluid,perteDP1.fluid,pulse.yL.signal,pulse.T0,$whenCondition1,SourceP1.fluid1,perteDP2.C1.diff_on_2,perteDP1.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 41 * 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 {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002305/2.647, allocations: 229.5 kB / 0.9904 GB, free: 449.6 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.548e-05/2.647, allocations: 50.19 kB / 0.9905 GB, free: 449.6 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009626/2.648, allocations: 0.5432 MB / 0.991 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.88e-06/2.648, allocations: 4.5 kB / 0.991 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/2.648, allocations: 1.812 kB / 0.991 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/2.648, allocations: 1.969 kB / 0.991 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004555/2.649, allocations: 0.5358 MB / 0.9915 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/2.649, allocations: 3.938 kB / 0.9915 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001257/2.649, allocations: 31.53 kB / 0.9916 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001222/2.65, allocations: 291.8 kB / 0.9918 GB, free: 449.2 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.349e-05/2.65, allocations: 12.91 kB / 0.9918 GB, free: 449.2 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004198/2.651, allocations: 0.7117 MB / 0.9925 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/2.651, allocations: 1.312 kB / 0.9925 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007486/2.652, allocations: 481 kB / 0.993 GB, free: 448.6 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/2.652, allocations: 176.9 kB / 0.9932 GB, free: 448.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.92e-05/2.652, allocations: 9.281 kB / 0.9932 GB, free: 448.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001764/2.652, allocations: 13.62 kB / 0.9932 GB, free: 448.4 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.833e-05/2.652, allocations: 28.72 kB / 0.9932 GB, free: 448.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.928e-05/2.652, allocations: 12.72 kB / 0.9932 GB, free: 448.4 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002634/2.652, allocations: 322 kB / 0.9935 GB, free: 448.4 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/2.652, allocations: 3.938 kB / 0.9935 GB, free: 448.3 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00385/2.656, allocations: 1.874 MB / 0.9954 GB, free: 448.3 MB / 0.8106 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 (20): * Single equations (assignments): 18 * 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 {(3,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008553/2.665, allocations: 3.828 MB / 0.9991 GB, free: 447.5 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000597/2.665, allocations: 393.4 kB / 0.9995 GB, free: 447.4 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/2.665, allocations: 2.375 kB / 0.9995 GB, free: 447.4 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003003/2.666, allocations: 235.3 kB / 0.9997 GB, free: 447.3 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004566/2.666, allocations: 98.55 kB / 0.9998 GB, free: 447.3 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006169/2.672, allocations: 5.04 MB / 1.005 GB, free: 444.8 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/2.673, allocations: 0.8796 MB / 1.006 GB, free: 444.1 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002558/2.673, allocations: 74.88 kB / 1.006 GB, free: 444.1 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/2.673, allocations: 196 kB / 1.006 GB, free: 444.1 MB / 0.8106 GB Notification: Performance of SimCode: time 3.31e-07/2.673, allocations: 4 kB / 1.006 GB, free: 444.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.278/6.951, allocations: 61.72 MB / 1.066 GB, free: 398.2 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001857/6.951, allocations: 287 kB / 1.066 GB, free: 397.8 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.551/11.5, allocations: 0 / 1.066 GB, free: 397.8 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestIdealSwitchValve_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestIdealSwitchValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.pipe 2>&1)