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: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7872/0.7873, allocations: 150.8 MB / 166.6 MB, free: 11.15 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002628/0.0002628, allocations: 23.95 kB / 204.7 MB, free: 6.168 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1867/0.187, allocations: 31.32 MB / 236 MB, free: 3.891 MB / 186.7 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve): time 1.589/1.776, allocations: 293.1 MB / 0.5167 GB, free: 8.918 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.4617/2.238, allocations: 195.1 MB / 0.7072 GB, free: 2.602 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004208/2.238, allocations: 9.125 kB / 0.7072 GB, free: 2.602 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/IdealSwitchValve.mo:22:3-24:37:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/IdealSwitchValve.mo:25:3-26:53:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:54:3-55:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:56:3-57:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:54:3-55:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:56:3-57:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.000187/2.238, allocations: 55.81 kB / 0.7073 GB, free: 2.598 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0003977/2.239, allocations: 184 kB / 0.7074 GB, free: 2.594 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0278/2.266, allocations: 10.22 MB / 0.7174 GB, free: 2.25 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0008411/2.267, allocations: 0.769 MB / 0.7182 GB, free: 2.246 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000374/2.268, allocations: 391.8 kB / 0.7185 GB, free: 2.191 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003149/2.268, allocations: 299.2 kB / 0.7188 GB, free: 2.191 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002902/2.268, allocations: 360.1 kB / 0.7192 GB, free: 2.191 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 6.815e-05/2.268, allocations: 56.14 kB / 0.7192 GB, free: 2.191 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03551/2.304, allocations: 22.42 MB / 0.7411 GB, free: 15.07 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0002366/2.304, allocations: 156.9 kB / 0.7413 GB, free: 15.04 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.000422/2.305, allocations: 360.1 kB / 0.7416 GB, free: 15.02 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.02713/2.332, allocations: 11.8 MB / 0.7531 GB, free: 10.61 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/2.332, allocations: 1.5 kB / 0.7531 GB, free: 10.61 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.492e-06/2.332, allocations: 6.531 kB / 0.7531 GB, free: 10.6 MB / 0.573 GB Notification: Performance of Transformations before backend: time 2.459e-05/2.332, allocations: 0 / 0.7531 GB, free: 10.6 MB / 0.573 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.005896/2.338, allocations: 2.39 MB / 0.7555 GB, free: 8.309 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/2.338, allocations: 12.03 kB / 0.7555 GB, free: 8.297 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001527/2.338, allocations: 83.06 kB / 0.7556 GB, free: 8.215 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005405/2.338, allocations: 426.2 kB / 0.756 GB, free: 7.836 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.658e-05/2.339, allocations: 81.39 kB / 0.7561 GB, free: 7.77 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.657e-05/2.339, allocations: 66.62 kB / 0.7561 GB, free: 7.719 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/2.34, allocations: 0.6735 MB / 0.7568 GB, free: 7.027 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/2.34, allocations: 2.531 kB / 0.7568 GB, free: 7.027 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.349e-05/2.34, allocations: 28 kB / 0.7568 GB, free: 7 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/2.34, allocations: 16 kB / 0.7568 GB, free: 6.984 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008884/2.341, allocations: 0.5645 MB / 0.7574 GB, free: 6.422 MB / 0.573 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.009774/2.35, allocations: 7.407 MB / 0.7646 GB, free: 14.15 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007577/2.351, allocations: 352.2 kB / 0.7649 GB, free: 13.8 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000223/2.351, allocations: 135.3 kB / 0.7651 GB, free: 13.67 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6354/2.987, allocations: 221.8 MB / 0.9816 GB, free: 393.2 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003861/2.987, allocations: 218.1 kB / 0.9818 GB, free: 393.1 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=35): time 2.605e-06/2.987, allocations: 0.5625 kB / 0.9818 GB, free: 393.1 MB / 0.7761 GB Notification: Performance of matching and sorting (n=35): time 0.002515/2.99, allocations: 0.8164 MB / 0.9826 GB, free: 392.9 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/2.99, allocations: 112.1 kB / 0.9827 GB, free: 392.8 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004821/2.99, allocations: 446.3 kB / 0.9832 GB, free: 392.7 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/2.99, allocations: 32.27 kB / 0.9832 GB, free: 392.6 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/2.991, allocations: 328.1 kB / 0.9835 GB, free: 392.5 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 6.612e-05/2.991, allocations: 117 kB / 0.9836 GB, free: 392.4 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/2.991, allocations: 107.1 kB / 0.9837 GB, free: 392.4 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 6.281e-05/2.991, allocations: 351.6 kB / 0.9841 GB, free: 392.1 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000192/2.991, allocations: 114 kB / 0.9842 GB, free: 392.1 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002378/2.991, allocations: 233.1 kB / 0.9844 GB, free: 392 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004094/2.995, allocations: 1.161 MB / 0.9855 GB, free: 391.7 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/2.995, allocations: 4.844 kB / 0.9855 GB, free: 391.7 MB / 0.7761 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.000903/2.996, allocations: 0.552 MB / 0.9861 GB, free: 391.6 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 3.716e-05/2.996, allocations: 40.75 kB / 0.9861 GB, free: 391.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/2.996, allocations: 5.969 kB / 0.9861 GB, free: 391.5 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001596/2.998, allocations: 299.1 kB / 0.9864 GB, free: 391.5 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002372/2.998, allocations: 68.75 kB / 0.9865 GB, free: 391.5 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000502/2.999, allocations: 0.6978 MB / 0.9871 GB, free: 391 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002846/2.999, allocations: 58.08 kB / 0.9872 GB, free: 390.9 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.458e-05/2.999, allocations: 23.44 kB / 0.9872 GB, free: 390.9 MB / 0.7761 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.0002576/2.999, allocations: 226.9 kB / 0.9874 GB, free: 390.8 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.188e-05/3, allocations: 48.19 kB / 0.9875 GB, free: 390.8 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001083/3.001, allocations: 0.538 MB / 0.988 GB, free: 390.7 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/3.001, allocations: 5.594 kB / 0.988 GB, free: 390.7 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/3.001, allocations: 1.281 kB / 0.988 GB, free: 390.7 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/3.001, allocations: 3.516 kB / 0.988 GB, free: 390.7 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005163/3.001, allocations: 0.5371 MB / 0.9885 GB, free: 390.4 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/3.001, allocations: 3.281 kB / 0.9885 GB, free: 390.4 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001317/3.001, allocations: 33.2 kB / 0.9886 GB, free: 390.4 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001294/3.003, allocations: 264 kB / 0.9888 GB, free: 390.4 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.746e-05/3.003, allocations: 13.14 kB / 0.9888 GB, free: 390.4 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004642/3.003, allocations: 0.7045 MB / 0.9895 GB, free: 389.9 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/3.003, allocations: 0 / 0.9895 GB, free: 389.9 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/3.005, allocations: 1.341 MB / 0.9908 GB, free: 389.2 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001652/3.005, allocations: 167.2 kB / 0.991 GB, free: 389 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.628e-05/3.005, allocations: 7.797 kB / 0.991 GB, free: 389 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/3.005, allocations: 12.59 kB / 0.991 GB, free: 389 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.673e-05/3.005, allocations: 30.16 kB / 0.991 GB, free: 389 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/3.005, allocations: 14.84 kB / 0.9911 GB, free: 389 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0002967/3.006, allocations: 326.4 kB / 0.9914 GB, free: 388.9 MB / 0.7761 GB Notification: Performance of sort global known variables: time 2.8e-07/3.006, allocations: 0 / 0.9914 GB, free: 388.9 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.004518/3.01, allocations: 1.954 MB / 0.9933 GB, free: 388.8 MB / 0.7761 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.008751/3.019, allocations: 2.932 MB / 0.9961 GB, free: 388.5 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0006877/3.02, allocations: 397.2 kB / 0.9965 GB, free: 388.5 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/3.02, allocations: 0 / 0.9965 GB, free: 388.5 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0003361/3.02, allocations: 228.8 kB / 0.9967 GB, free: 388.4 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005112/3.02, allocations: 98.36 kB / 0.9968 GB, free: 388.4 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/3.022, allocations: 1.392 MB / 0.9982 GB, free: 387.6 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000254/3.022, allocations: 0.8858 MB / 0.9991 GB, free: 386.8 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0002761/3.022, allocations: 80.12 kB / 0.9991 GB, free: 386.8 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.293e-05/3.023, allocations: 42.59 kB / 0.9992 GB, free: 386.8 MB / 0.7761 GB Notification: Performance of SimCode: time 2.5e-07/3.023, allocations: 0 / 0.9992 GB, free: 386.8 MB / 0.7761 GB Notification: Performance of Templates: time 0.06568/3.088, allocations: 55.83 MB / 1.054 GB, free: 340.4 MB / 0.7761 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.makefile (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 & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.pipe 2>&1)