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: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestIdealSwitchValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_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.7744/0.7744, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.145e-05/2.133e-05, allocations: 4 kB / 204.8 MB, free: 9.965 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1439, allocations: 32 MB / 236.8 MB, free: 5.402 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.469/1.613, allocations: 295.4 MB / 0.5197 GB, free: 12.56 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.171/1.784, allocations: 185.5 MB / 0.7009 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002632/1.785, allocations: 4 kB / 0.7009 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002888/1.785, allocations: 111.3 kB / 0.701 GB, free: 2.574 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002935/1.785, allocations: 138.8 kB / 0.7011 GB, free: 2.438 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2711/2.056, allocations: 8.841 MB / 0.7097 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006851/2.057, allocations: 0.5892 MB / 0.7103 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002498/2.057, allocations: 197.1 kB / 0.7105 GB, free: 5.547 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002899/2.058, allocations: 213 kB / 0.7107 GB, free: 5.547 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000222/2.058, allocations: 194.3 kB / 0.7109 GB, free: 5.547 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.819e-05/2.058, allocations: 18.12 kB / 0.7109 GB, free: 5.547 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02904/2.087, allocations: 20.16 MB / 0.7306 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000137/2.087, allocations: 67.91 kB / 0.7307 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003722/2.088, allocations: 258.2 kB / 0.7309 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01945/2.107, allocations: 9.902 MB / 0.7406 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/2.107, allocations: 2.625 kB / 0.7406 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.046e-06/2.107, allocations: 3.984 kB / 0.7406 GB, free: 2.629 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.403e-06/2.107, allocations: 1.859 kB / 0.7406 GB, free: 2.629 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.004362/2.111, allocations: 1.827 MB / 0.7424 GB, free: 1.398 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/2.111, allocations: 14.66 kB / 0.7424 GB, free: 1.398 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.503e-05/2.112, allocations: 85.67 kB / 0.7425 GB, free: 1.348 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.826e-05/2.112, allocations: 53.34 kB / 0.7425 GB, free: 1.32 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002531/2.112, allocations: 316 kB / 0.7428 GB, free: 1.062 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.68e-05/2.112, allocations: 54.98 kB / 0.7429 GB, free: 1.031 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.079e-05/2.112, allocations: 42.09 kB / 0.7429 GB, free: 1.027 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005681/2.113, allocations: 0.5077 MB / 0.7434 GB, free: 0.8086 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/2.113, allocations: 0 / 0.7434 GB, free: 0.8086 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/2.113, allocations: 22.62 kB / 0.7434 GB, free: 0.8086 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/2.113, allocations: 23.05 kB / 0.7435 GB, free: 0.8047 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003862/2.113, allocations: 308.6 kB / 0.7437 GB, free: 0.7734 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.03476/2.148, allocations: 19.34 MB / 0.7626 GB, free: 2.527 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005602/2.148, allocations: 297.6 kB / 0.7629 GB, free: 2.48 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001924/2.149, allocations: 172 kB / 0.7631 GB, free: 2.457 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2957/2.444, allocations: 151.8 MB / 0.9113 GB, free: 1.266 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000388/2.445, allocations: 265.6 kB / 0.9115 GB, free: 1.047 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=60): time 1.653e-06/2.445, allocations: 0 / 0.9115 GB, free: 1.047 MB / 0.7481 GB Notification: Performance of matching and sorting (n=60): time 0.002332/2.447, allocations: 0.9367 MB / 0.9124 GB, free: 304 kB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.97e-05/2.447, allocations: 173.3 kB / 0.9126 GB, free: 96 kB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000328/2.448, allocations: 344 kB / 0.9129 GB, free: 15.82 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.39e-05/2.448, allocations: 29.27 kB / 0.913 GB, free: 15.79 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/2.448, allocations: 219.6 kB / 0.9132 GB, free: 15.61 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/2.448, allocations: 195.1 kB / 0.9134 GB, free: 15.45 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.752e-05/2.448, allocations: 56.42 kB / 0.9134 GB, free: 15.4 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001035/2.448, allocations: 349.2 kB / 0.9137 GB, free: 15.07 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001857/2.448, allocations: 131.9 kB / 0.9139 GB, free: 15 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002266/2.448, allocations: 225.4 kB / 0.9141 GB, free: 14.81 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003157/2.452, allocations: 1.072 MB / 0.9151 GB, free: 13.91 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/2.452, allocations: 0 / 0.9151 GB, free: 13.91 MB / 0.7637 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.000788/2.452, allocations: 0.5888 MB / 0.9157 GB, free: 13.5 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/2.452, allocations: 33.7 kB / 0.9157 GB, free: 13.46 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/2.452, allocations: 4.297 kB / 0.9157 GB, free: 13.46 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001683/2.454, allocations: 0.5048 MB / 0.9162 GB, free: 12.99 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.89e-05/2.454, allocations: 27.64 kB / 0.9163 GB, free: 12.97 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007598/2.455, allocations: 0.8366 MB / 0.9171 GB, free: 12.24 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002576/2.455, allocations: 66.77 kB / 0.9171 GB, free: 12.18 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.324e-05/2.455, allocations: 21.58 kB / 0.9172 GB, free: 12.17 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.0002111/2.456, allocations: 199 kB / 0.9174 GB, free: 11.99 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.067e-05/2.456, allocations: 43.52 kB / 0.9174 GB, free: 11.95 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/2.457, allocations: 0.9402 MB / 0.9183 GB, free: 11.23 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0007059/2.458, allocations: 0.5377 MB / 0.9188 GB, free: 10.85 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/2.458, allocations: 0 / 0.9188 GB, free: 10.85 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/2.458, allocations: 0 / 0.9188 GB, free: 10.85 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001805/2.459, allocations: 1.425 MB / 0.9202 GB, free: 9.738 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/2.459, allocations: 4 kB / 0.9202 GB, free: 9.734 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/2.46, allocations: 42.7 kB / 0.9203 GB, free: 9.699 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001349/2.461, allocations: 488.1 kB / 0.9207 GB, free: 9.266 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/2.461, allocations: 15.36 kB / 0.9208 GB, free: 9.258 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007161/2.462, allocations: 0.8992 MB / 0.9216 GB, free: 8.484 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/2.462, allocations: 3.984 kB / 0.9216 GB, free: 8.48 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009356/2.463, allocations: 0.6953 MB / 0.9223 GB, free: 7.938 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000155/2.463, allocations: 178.3 kB / 0.9225 GB, free: 7.766 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.481e-05/2.463, allocations: 11.38 kB / 0.9225 GB, free: 7.762 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002137/2.463, allocations: 19.73 kB / 0.9225 GB, free: 7.746 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.497e-05/2.463, allocations: 34.69 kB / 0.9226 GB, free: 7.719 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.052e-05/2.463, allocations: 11.81 kB / 0.9226 GB, free: 7.711 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002813/2.463, allocations: 309 kB / 0.9229 GB, free: 7.477 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.31e-07/2.463, allocations: 0 / 0.9229 GB, free: 7.477 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003501/2.467, allocations: 1.537 MB / 0.9244 GB, free: 6.039 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.006694/2.474, allocations: 3.457 MB / 0.9277 GB, free: 3.047 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0008983/2.475, allocations: 0.5599 MB / 0.9283 GB, free: 2.609 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/2.475, allocations: 0 / 0.9283 GB, free: 2.609 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0004879/2.475, allocations: 314.7 kB / 0.9286 GB, free: 2.371 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/2.476, allocations: 187.5 kB / 0.9288 GB, free: 2.223 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005649/2.482, allocations: 4.841 MB / 0.9335 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003258/2.482, allocations: 0.8635 MB / 0.9343 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001833/2.482, allocations: 55.03 kB / 0.9344 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001869/2.483, allocations: 183.1 kB / 0.9346 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of SimCode: time 4.61e-07/2.483, allocations: 0 / 0.9346 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2386/2.721, allocations: 58.28 MB / 0.9915 GB, free: 458.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/2.721, allocations: 281.6 kB / 0.9917 GB, free: 457.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.207/6.928, allocations: 0 / 0.9917 GB, free: 457.7 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestIdealSwitchValve_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestIdealSwitchValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.pipe 2>&1)