Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.275/2.275, allocations: 390.3 MB / 405.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001458/0.001459, allocations: 182.7 kB / 498.1 MB, free: 5.75 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 223.1 MB / 0.7948 GB, free: 17.99 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001229/0.00123, allocations: 102.4 kB / 0.9346 GB, free: 6.301 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004304/0.0004304, allocations: 10.22 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2808, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2041/0.485, allocations: 171.7 MB / 1.391 GB, free: 6.336 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003744/0.4854, allocations: 95.94 kB / 1.391 GB, free: 6.242 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.7589/1.244, allocations: 40.18 MB / 1.43 GB, free: 180.8 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.914e-06/1.244, allocations: 3.906 kB / 1.43 GB, free: 180.8 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 7.528e-05/1.245, allocations: 23.69 kB / 1.43 GB, free: 180.8 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002434/1.247, allocations: 1.034 MB / 1.431 GB, free: 180.2 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 6.361e-05/1.247, allocations: 13.39 kB / 1.431 GB, free: 180.2 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000227/1.247, allocations: 123.6 kB / 1.431 GB, free: 180.2 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002209/1.25, allocations: 245.7 kB / 1.431 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00137/1.251, allocations: 0.5308 MB / 1.432 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.793e-05/1.251, allocations: 50.89 kB / 1.432 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/1.251, allocations: 70.62 kB / 1.432 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002291/1.253, allocations: 1.124 MB / 1.433 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.972e-05/1.253, allocations: 10.31 kB / 1.433 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/1.254, allocations: 35.89 kB / 1.433 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001235/1.254, allocations: 53.61 kB / 1.433 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/1.255, allocations: 0.7488 MB / 1.434 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007764/1.263, allocations: 5.908 MB / 1.44 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/1.265, allocations: 0.5515 MB / 1.44 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 4.369e-05/1.265, allocations: 5.938 kB / 1.44 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/1.265, allocations: 42.03 kB / 1.44 GB, free: 175 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=47): time 6.622e-06/1.265, allocations: 3.938 kB / 1.44 GB, free: 175 MB / 0.9167 GB Notification: Performance of matching and sorting (n=48): time 0.00587/1.271, allocations: 1.978 MB / 1.442 GB, free: 174.4 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.618e-05/1.271, allocations: 63.92 kB / 1.442 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009503/1.272, allocations: 493.1 kB / 1.443 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 5.061e-05/1.272, allocations: 36.11 kB / 1.443 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003205/1.272, allocations: 400.2 kB / 1.443 GB, free: 174 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001662/1.272, allocations: 172.1 kB / 1.443 GB, free: 173.9 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.411e-05/1.273, allocations: 11.69 kB / 1.443 GB, free: 173.9 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001425/1.273, allocations: 375.2 kB / 1.444 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006071/1.273, allocations: 267.3 kB / 1.444 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007456/1.274, allocations: 463.9 kB / 1.444 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007288/1.275, allocations: 341.5 kB / 1.445 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/1.275, allocations: 1.594 kB / 1.445 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.002664/1.277, allocations: 1.051 MB / 1.446 GB, free: 173.2 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 3.155e-05/1.278, allocations: 7.031 kB / 1.446 GB, free: 173.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.106e-05/1.278, allocations: 11.89 kB / 1.446 GB, free: 173.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001215/1.279, allocations: 278 kB / 1.446 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006757/1.279, allocations: 118.4 kB / 1.446 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007527/1.287, allocations: 6.706 MB / 1.453 GB, free: 168.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009777/1.288, allocations: 39.56 kB / 1.453 GB, free: 168.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.939e-05/1.288, allocations: 25.16 kB / 1.453 GB, free: 168.1 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005668/1.289, allocations: 252.9 kB / 1.453 GB, free: 168 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/1.289, allocations: 67.81 kB / 1.453 GB, free: 167.9 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002337/1.291, allocations: 0.8948 MB / 1.454 GB, free: 167.8 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/1.291, allocations: 9.188 kB / 1.454 GB, free: 167.8 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/1.291, allocations: 5.594 kB / 1.454 GB, free: 167.8 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/1.291, allocations: 2.484 kB / 1.454 GB, free: 167.8 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004022/1.295, allocations: 1.711 MB / 1.456 GB, free: 167.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/1.295, allocations: 1.031 kB / 1.456 GB, free: 167.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003931/1.296, allocations: 56.02 kB / 1.456 GB, free: 167.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/1.297, allocations: 270.4 kB / 1.456 GB, free: 167.4 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.685e-05/1.297, allocations: 11.67 kB / 1.456 GB, free: 167.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007452/1.304, allocations: 6.696 MB / 1.462 GB, free: 162.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.283e-06/1.304, allocations: 4.578 kB / 1.462 GB, free: 162.1 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002505/1.307, allocations: 1.049 MB / 1.463 GB, free: 161.5 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007091/1.308, allocations: 195.4 kB / 1.464 GB, free: 161.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002625/1.308, allocations: 11.94 kB / 1.464 GB, free: 161.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006975/1.309, allocations: 30.61 kB / 1.464 GB, free: 161.3 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002035/1.309, allocations: 42.52 kB / 1.464 GB, free: 161.3 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.947e-05/1.309, allocations: 16.31 kB / 1.464 GB, free: 161.3 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0008757/1.31, allocations: 387.7 kB / 1.464 GB, free: 161.2 MB / 0.9167 GB Notification: Performance of sort global known variables: time 4.51e-07/1.31, allocations: 0 / 1.464 GB, free: 161.2 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.001641/1.312, allocations: 233.2 kB / 1.464 GB, free: 161.1 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002663/1.314, allocations: 2.023 MB / 1.466 GB, free: 159.6 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.00281/1.317, allocations: 1.256 MB / 1.468 GB, free: 158.8 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/1.317, allocations: 4.328 kB / 1.468 GB, free: 158.8 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.001689/1.319, allocations: 0.8876 MB / 1.468 GB, free: 158.2 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001551/1.32, allocations: 199 kB / 1.469 GB, free: 158.2 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01195/1.332, allocations: 8.282 MB / 1.477 GB, free: 151.9 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007687/1.333, allocations: 1.025 MB / 1.478 GB, free: 151.2 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0008006/1.334, allocations: 121.5 kB / 1.478 GB, free: 151.2 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000404/1.334, allocations: 257.4 kB / 1.478 GB, free: 151 MB / 0.9167 GB Notification: Performance of SimCode: time 1.262e-06/1.334, allocations: 0 / 1.478 GB, free: 151 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04552/1.38, allocations: 16.24 MB / 1.494 GB, free: 150.2 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002187/1.38, allocations: 208.4 kB / 1.494 GB, free: 149.9 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.428/3.808, allocations: 0 / 1.494 GB, free: 149.9 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat does not exist to compare? outputFormat=mat