Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.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.TestSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSwitchValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSwitchValve",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.7824/0.7824, allocations: 150.8 MB / 166.1 MB, free: 15.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.839e-05/1.832e-05, allocations: 4 kB / 204.9 MB, free: 9.969 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.139, allocations: 31.98 MB / 236.8 MB, free: 5.41 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.TestSwitchValve): time 1.488/1.627, allocations: 295.6 MB / 0.5199 GB, free: 12.21 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1746/1.802, allocations: 185.5 MB / 0.7011 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002803/1.802, allocations: 4 kB / 0.7011 GB, free: 2.316 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002934/1.802, allocations: 107.3 kB / 0.7012 GB, free: 2.211 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000329/1.803, allocations: 166.7 kB / 0.7014 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2835/2.086, allocations: 8.852 MB / 0.71 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000813/2.087, allocations: 0.6578 MB / 0.7107 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003673/2.087, allocations: 208.9 kB / 0.7109 GB, free: 5.43 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005054/2.088, allocations: 236.5 kB / 0.7111 GB, free: 5.43 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004025/2.088, allocations: 217.4 kB / 0.7113 GB, free: 5.43 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.666e-05/2.088, allocations: 19.16 kB / 0.7113 GB, free: 5.43 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02842/2.117, allocations: 20.17 MB / 0.731 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001459/2.117, allocations: 68.05 kB / 0.7311 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003892/2.117, allocations: 277.9 kB / 0.7313 GB, free: 5.309 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0201/2.137, allocations: 9.964 MB / 0.7411 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/2.137, allocations: 0 / 0.7411 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.643e-06/2.137, allocations: 0 / 0.7411 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.873e-05/2.137, allocations: 2.625 kB / 0.7411 GB, free: 2.285 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.00452/2.142, allocations: 1.867 MB / 0.7429 GB, free: 1.031 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/2.142, allocations: 8.625 kB / 0.7429 GB, free: 1.031 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.025e-05/2.142, allocations: 89.64 kB / 0.743 GB, free: 0.9805 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.739e-05/2.142, allocations: 61.47 kB / 0.7431 GB, free: 0.9492 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002909/2.143, allocations: 333.7 kB / 0.7434 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.717e-05/2.143, allocations: 61.86 kB / 0.7434 GB, free: 0.6484 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.161e-05/2.143, allocations: 41.12 kB / 0.7435 GB, free: 0.6445 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006196/2.143, allocations: 0.5526 MB / 0.744 GB, free: 424 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/2.143, allocations: 0 / 0.744 GB, free: 424 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.161e-05/2.143, allocations: 24.94 kB / 0.744 GB, free: 424 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/2.143, allocations: 22.89 kB / 0.7441 GB, free: 420 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004392/2.144, allocations: 346.8 kB / 0.7444 GB, free: 384 kB / 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.03495/2.179, allocations: 19.49 MB / 0.7634 GB, free: 2.027 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006173/2.179, allocations: 321.7 kB / 0.7637 GB, free: 1.977 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002317/2.18, allocations: 198.3 kB / 0.7639 GB, free: 1.953 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2827/2.462, allocations: 151.8 MB / 0.9121 GB, free: 480 kB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004307/2.463, allocations: 296.2 kB / 0.9124 GB, free: 240 kB / 0.7481 GB Notification: Performance of pre-optimization done (n=71): time 1.733e-06/2.463, allocations: 0 / 0.9124 GB, free: 240 kB / 0.7481 GB Notification: Performance of matching and sorting (n=71): time 0.002945/2.466, allocations: 1.117 MB / 0.9135 GB, free: 15.35 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.366e-05/2.466, allocations: 166 kB / 0.9137 GB, free: 15.15 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003507/2.466, allocations: 363.1 kB / 0.914 GB, free: 14.86 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/2.466, allocations: 25.7 kB / 0.914 GB, free: 14.83 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/2.466, allocations: 228.5 kB / 0.9142 GB, free: 14.65 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/2.467, allocations: 226.5 kB / 0.9145 GB, free: 14.46 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.32e-05/2.467, allocations: 63.98 kB / 0.9145 GB, free: 14.41 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001147/2.467, allocations: 360.8 kB / 0.9149 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002203/2.467, allocations: 144.9 kB / 0.915 GB, free: 13.99 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002563/2.467, allocations: 248.5 kB / 0.9152 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003658/2.471, allocations: 1.225 MB / 0.9164 GB, free: 12.77 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/2.471, allocations: 0 / 0.9164 GB, free: 12.77 MB / 0.7637 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0008729/2.472, allocations: 0.6593 MB / 0.9171 GB, free: 12.31 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.455e-05/2.472, allocations: 41.25 kB / 0.9171 GB, free: 12.27 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/2.472, allocations: 7.938 kB / 0.9171 GB, free: 12.26 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002225/2.474, allocations: 0.6953 MB / 0.9178 GB, free: 11.61 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.771e-05/2.474, allocations: 26.89 kB / 0.9178 GB, free: 11.59 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008817/2.475, allocations: 0.9397 MB / 0.9187 GB, free: 10.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002723/2.475, allocations: 58.84 kB / 0.9188 GB, free: 10.75 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.943e-05/2.475, allocations: 19.8 kB / 0.9188 GB, free: 10.73 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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002209/2.476, allocations: 200.8 kB / 0.919 GB, free: 10.55 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.894e-05/2.476, allocations: 47.34 kB / 0.9191 GB, free: 10.51 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001408/2.477, allocations: 1.138 MB / 0.9202 GB, free: 9.684 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008714/2.478, allocations: 0.704 MB / 0.9209 GB, free: 9.195 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/2.478, allocations: 0 / 0.9209 GB, free: 9.195 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/2.478, allocations: 3.984 kB / 0.9209 GB, free: 9.191 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001936/2.48, allocations: 1.696 MB / 0.9225 GB, free: 7.918 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/2.48, allocations: 0 / 0.9225 GB, free: 7.918 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001524/2.48, allocations: 58.56 kB / 0.9226 GB, free: 7.867 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001926/2.482, allocations: 0.7124 MB / 0.9233 GB, free: 7.215 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.74e-05/2.482, allocations: 11.38 kB / 0.9233 GB, free: 7.211 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008497/2.483, allocations: 0.9963 MB / 0.9243 GB, free: 6.383 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/2.483, allocations: 0 / 0.9243 GB, free: 6.383 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008635/2.484, allocations: 0.821 MB / 0.9251 GB, free: 5.766 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001827/2.484, allocations: 197.8 kB / 0.9252 GB, free: 5.578 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.663e-05/2.484, allocations: 7.688 kB / 0.9252 GB, free: 5.574 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002366/2.484, allocations: 19.36 kB / 0.9253 GB, free: 5.562 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.897e-05/2.484, allocations: 35.77 kB / 0.9253 GB, free: 5.535 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.478e-05/2.484, allocations: 19.67 kB / 0.9253 GB, free: 5.52 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002823/2.485, allocations: 319.6 kB / 0.9256 GB, free: 5.281 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.2e-07/2.485, allocations: 0 / 0.9256 GB, free: 5.281 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003246/2.488, allocations: 1.541 MB / 0.9271 GB, free: 3.84 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 (36): * Single equations (assignments): 34 * 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,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007329/2.495, allocations: 3.6 MB / 0.9306 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001039/2.496, allocations: 0.6875 MB / 0.9313 GB, free: 228 kB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/2.496, allocations: 4.188 kB / 0.9313 GB, free: 224 kB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0006039/2.497, allocations: 376.6 kB / 0.9317 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/2.498, allocations: 233.2 kB / 0.9319 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006351/2.505, allocations: 5.273 MB / 0.9371 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/2.505, allocations: 0.9026 MB / 0.9379 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002039/2.505, allocations: 51.02 kB / 0.938 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/2.505, allocations: 212.3 kB / 0.9382 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/2.505, allocations: 4 kB / 0.9382 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.347/5.852, allocations: 60.72 MB / 0.9975 GB, free: 430.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001716/5.853, allocations: 276.5 kB / 0.9978 GB, free: 430.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.171/10.02, allocations: 0 / 0.9978 GB, free: 430.5 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSwitchValve_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSwitchValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.pipe 2>&1)