Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.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,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine",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.325/2.325, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001123/0.001123, allocations: 184.8 kB / 487.4 MB, free: 5.035 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.628/1.628, allocations: 221.5 MB / 0.7824 GB, free: 0.9766 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008958/0.0008957, allocations: 91.05 kB / 0.9219 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.111e-05/2.114e-05, allocations: 5.5 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2933, allocations: 142.4 MB / 1.206 GB, free: 43.87 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.928/1.221, allocations: 190.8 MB / 1.392 GB, free: 13.92 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002786/1.222, allocations: 97.23 kB / 1.392 GB, free: 13.9 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1977/1.419, allocations: 83.1 MB / 1.474 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.966e-06/1.419, allocations: 7.922 kB / 1.474 GB, free: 11.06 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.924e-05/1.42, allocations: 39.98 kB / 1.474 GB, free: 11.02 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.00273/1.422, allocations: 1.542 MB / 1.475 GB, free: 9.539 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.364e-05/1.422, allocations: 12.03 kB / 1.475 GB, free: 9.527 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01041/1.433, allocations: 1.804 MB / 1.477 GB, free: 7.742 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002666/1.436, allocations: 1.135 MB / 1.478 GB, free: 6.762 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.442e-05/1.436, allocations: 39.94 kB / 1.478 GB, free: 6.723 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002224/1.436, allocations: 71.91 kB / 1.478 GB, free: 6.652 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002406/1.438, allocations: 1.438 MB / 1.48 GB, free: 5.758 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002855/1.441, allocations: 1.874 MB / 1.481 GB, free: 4.18 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.055e-05/1.441, allocations: 7.938 kB / 1.481 GB, free: 4.172 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001444/1.441, allocations: 11.95 kB / 1.481 GB, free: 4.16 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.698e-05/1.441, allocations: 73.14 kB / 1.481 GB, free: 4.09 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01476/1.456, allocations: 9.931 MB / 1.491 GB, free: 9.992 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001879/1.458, allocations: 1.105 MB / 1.492 GB, free: 8.859 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007594/1.459, allocations: 0.586 MB / 1.493 GB, free: 8.273 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 4.404e-05/1.459, allocations: 8.422 kB / 1.493 GB, free: 8.262 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.742e-05/1.459, allocations: 46.95 kB / 1.493 GB, free: 8.207 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=53): time 2.364e-06/1.459, allocations: 0 / 1.493 GB, free: 8.207 MB / 0.9011 GB Notification: Performance of matching and sorting (n=81): time 0.008435/1.467, allocations: 3.87 MB / 1.497 GB, free: 4.301 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/1.468, allocations: 218.4 kB / 1.497 GB, free: 4.039 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001046/1.469, allocations: 0.7421 MB / 1.498 GB, free: 3.285 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 9.551e-05/1.469, allocations: 25.7 kB / 1.498 GB, free: 3.254 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005233/1.469, allocations: 0.7447 MB / 1.498 GB, free: 2.5 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002714/1.47, allocations: 267.9 kB / 1.499 GB, free: 2.234 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.075e-05/1.47, allocations: 4 kB / 1.499 GB, free: 2.23 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001436/1.47, allocations: 345.9 kB / 1.499 GB, free: 1.887 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009152/1.471, allocations: 0.6741 MB / 1.5 GB, free: 1.211 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/1.472, allocations: 0.9033 MB / 1.5 GB, free: 212 kB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001265/1.473, allocations: 0.7851 MB / 1.501 GB, free: 15.42 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/1.473, allocations: 0 / 1.501 GB, free: 15.42 MB / 0.9167 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.004776/1.478, allocations: 2.429 MB / 1.504 GB, free: 12.96 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/1.478, allocations: 10.19 kB / 1.504 GB, free: 12.95 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/1.478, allocations: 4.062 kB / 1.504 GB, free: 12.95 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002961/1.481, allocations: 0.842 MB / 1.504 GB, free: 12.08 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001959/1.483, allocations: 423.2 kB / 1.505 GB, free: 11.67 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0152/1.498, allocations: 14.31 MB / 1.519 GB, free: 12.43 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002521/1.501, allocations: 287.6 kB / 1.519 GB, free: 12.15 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000159/1.501, allocations: 47.97 kB / 1.519 GB, free: 12.1 MB / 0.9323 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 70 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 5,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002771/1.501, allocations: 124.4 kB / 1.519 GB, free: 11.98 MB / 0.9323 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004726/1.506, allocations: 2.238 MB / 1.521 GB, free: 9.707 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003596/1.506, allocations: 126.5 kB / 1.522 GB, free: 9.582 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005061/1.511, allocations: 2.423 MB / 1.524 GB, free: 7.121 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.125e-05/1.511, allocations: 12.19 kB / 1.524 GB, free: 7.109 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.52e-05/1.511, allocations: 15.94 kB / 1.524 GB, free: 7.094 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/1.511, allocations: 7.969 kB / 1.524 GB, free: 7.086 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007562/1.519, allocations: 4.034 MB / 1.528 GB, free: 2.945 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.986e-06/1.519, allocations: 4 kB / 1.528 GB, free: 2.941 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001794/1.521, allocations: 363.7 kB / 1.528 GB, free: 2.586 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002646/1.523, allocations: 0.7561 MB / 1.529 GB, free: 1.805 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/1.524, allocations: 19.97 kB / 1.529 GB, free: 1.785 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01362/1.537, allocations: 13.92 MB / 1.543 GB, free: 2.941 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-05/1.537, allocations: 7.938 kB / 1.543 GB, free: 2.934 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004642/1.542, allocations: 2.419 MB / 1.545 GB, free: 388 kB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007955/1.543, allocations: 375.5 kB / 1.545 GB, free: 15.99 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002043/1.543, allocations: 11.92 kB / 1.545 GB, free: 15.98 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002723/1.546, allocations: 295.5 kB / 1.546 GB, free: 15.69 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003204/1.546, allocations: 84.56 kB / 1.546 GB, free: 15.61 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/1.546, allocations: 35.97 kB / 1.546 GB, free: 15.57 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.001171/1.547, allocations: 0.5602 MB / 1.546 GB, free: 15 MB / 0.9636 GB Notification: Performance of sort global known variables: time 2.5e-07/1.547, allocations: 4 kB / 1.546 GB, free: 15 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.002204/1.55, allocations: 411.9 kB / 1.547 GB, free: 14.6 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 38 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 2,(2,100.0%) 4,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(3,100.0%) 5,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007033/1.557, allocations: 3.734 MB / 1.55 GB, free: 10.74 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.006126/1.563, allocations: 2.745 MB / 1.553 GB, free: 7.914 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 8.195e-06/1.563, allocations: 3.938 kB / 1.553 GB, free: 7.91 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.003155/1.566, allocations: 1.903 MB / 1.555 GB, free: 5.93 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002695/1.569, allocations: 409.1 kB / 1.555 GB, free: 5.531 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007466/1.576, allocations: 2.944 MB / 1.558 GB, free: 2.5 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001099/1.577, allocations: 1.427 MB / 1.56 GB, free: 1.035 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.001621/1.579, allocations: 362.5 kB / 1.56 GB, free: 0.6758 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008237/1.58, allocations: 0.5813 MB / 1.56 GB, free: 96 kB / 0.9636 GB Notification: Performance of SimCode: time 1.062e-06/1.58, allocations: 4 kB / 1.56 GB, free: 92 kB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0774/1.657, allocations: 37.23 MB / 1.597 GB, free: 11.23 MB / 1.01 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002756/1.658, allocations: 156.3 kB / 1.597 GB, free: 11.03 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.925/4.583, allocations: 0 / 1.597 GB, free: 11.03 MB / 1.01 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat does not exist to compare? outputFormat=mat