Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.336/2.336, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.00121/0.00121, allocations: 185.7 kB / 0.4901 GB, free: 2.242 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.851/1.851, allocations: 223.1 MB / 0.7992 GB, free: 15.66 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.00127/0.00127, allocations: 112.7 kB / 0.9396 GB, free: 2.848 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003852/0.0003852, allocations: 8.031 kB / 1.09 GB, free: 212.9 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3103, allocations: 143 MB / 1.229 GB, free: 85.37 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8116/1.122, allocations: 193.7 MB / 1.418 GB, free: 175.9 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004042/1.122, allocations: 97.94 kB / 1.419 GB, free: 175.9 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.0808/1.203, allocations: 34.42 MB / 1.452 GB, free: 161.3 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.524e-06/1.203, allocations: 0 / 1.452 GB, free: 161.3 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.159e-05/1.203, allocations: 19.98 kB / 1.452 GB, free: 161.3 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001522/1.205, allocations: 0.8741 MB / 1.453 GB, free: 160.4 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/1.205, allocations: 12.56 kB / 1.453 GB, free: 160.4 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001302/1.205, allocations: 98.56 kB / 1.453 GB, free: 160.4 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001413/1.206, allocations: 198.9 kB / 1.453 GB, free: 160.2 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009198/1.207, allocations: 495.8 kB / 1.454 GB, free: 159.7 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.95e-05/1.207, allocations: 48.61 kB / 1.454 GB, free: 159.7 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001501/1.208, allocations: 55.36 kB / 1.454 GB, free: 159.6 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/1.209, allocations: 0.8593 MB / 1.455 GB, free: 158.6 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.666e-05/1.209, allocations: 11.94 kB / 1.455 GB, free: 158.6 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.773e-05/1.209, allocations: 23.98 kB / 1.455 GB, free: 158.6 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.105e-05/1.209, allocations: 48.97 kB / 1.455 GB, free: 158.6 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007234/1.21, allocations: 0.5735 MB / 1.455 GB, free: 158 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003483/1.213, allocations: 4.592 MB / 1.46 GB, free: 153 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003946/1.213, allocations: 298.4 kB / 1.46 GB, free: 152.7 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.811e-05/1.213, allocations: 4 kB / 1.46 GB, free: 152.7 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/1.213, allocations: 34.56 kB / 1.46 GB, free: 152.7 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=33): time 2.584e-06/1.214, allocations: 4 kB / 1.46 GB, free: 152.7 MB / 0.9011 GB Notification: Performance of matching and sorting (n=40): time 0.004979/1.218, allocations: 2.631 MB / 1.463 GB, free: 149.9 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.798e-05/1.219, allocations: 55.41 kB / 1.463 GB, free: 149.9 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000375/1.219, allocations: 393.2 kB / 1.463 GB, free: 149.5 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/1.219, allocations: 29.7 kB / 1.463 GB, free: 149.4 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/1.219, allocations: 335.8 kB / 1.463 GB, free: 149.1 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 8.069e-05/1.219, allocations: 145.9 kB / 1.464 GB, free: 149 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.589e-05/1.219, allocations: 12 kB / 1.464 GB, free: 148.9 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 7.584e-05/1.219, allocations: 362.7 kB / 1.464 GB, free: 148.6 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000284/1.22, allocations: 233 kB / 1.464 GB, free: 148.4 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003446/1.22, allocations: 384.4 kB / 1.465 GB, free: 147.9 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003457/1.22, allocations: 290.2 kB / 1.465 GB, free: 147.6 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/1.22, allocations: 8 kB / 1.465 GB, free: 147.6 MB / 0.9011 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001417/1.222, allocations: 0.8902 MB / 1.466 GB, free: 146.7 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/1.222, allocations: 7.938 kB / 1.466 GB, free: 146.7 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/1.222, allocations: 8 kB / 1.466 GB, free: 146.7 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007638/1.223, allocations: 226.9 kB / 1.466 GB, free: 146.5 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004824/1.223, allocations: 107.8 kB / 1.466 GB, free: 146.4 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003784/1.227, allocations: 5.018 MB / 1.471 GB, free: 140.9 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005517/1.227, allocations: 27.97 kB / 1.471 GB, free: 140.9 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.568e-05/1.227, allocations: 20 kB / 1.471 GB, free: 140.9 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (55): * Single equations (assignments): 52 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003563/1.228, allocations: 233.6 kB / 1.471 GB, free: 140.7 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.87e-05/1.228, allocations: 55.34 kB / 1.471 GB, free: 140.6 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001302/1.229, allocations: 0.778 MB / 1.472 GB, free: 139.8 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-06/1.229, allocations: 4 kB / 1.472 GB, free: 139.8 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/1.229, allocations: 384 / 1.472 GB, free: 139.8 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.381e-06/1.229, allocations: 3.984 kB / 1.472 GB, free: 139.8 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002124/1.231, allocations: 1.482 MB / 1.473 GB, free: 138.2 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/1.231, allocations: 4.219 kB / 1.474 GB, free: 138.2 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003734/1.232, allocations: 71.89 kB / 1.474 GB, free: 138.2 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006487/1.232, allocations: 202.4 kB / 1.474 GB, free: 138 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.197e-05/1.233, allocations: 15.98 kB / 1.474 GB, free: 137.9 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003503/1.236, allocations: 4.939 MB / 1.479 GB, free: 132.6 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.236, allocations: 4.031 kB / 1.479 GB, free: 132.6 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/1.238, allocations: 1.207 MB / 1.48 GB, free: 131.3 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003598/1.238, allocations: 172.7 kB / 1.48 GB, free: 131.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/1.238, allocations: 8 kB / 1.48 GB, free: 131.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003966/1.239, allocations: 23.97 kB / 1.48 GB, free: 131.1 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.979e-05/1.239, allocations: 47.83 kB / 1.48 GB, free: 131 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.853e-05/1.239, allocations: 12 kB / 1.48 GB, free: 131 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0003357/1.239, allocations: 310.9 kB / 1.48 GB, free: 130.7 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.4e-07/1.239, allocations: 64 / 1.48 GB, free: 130.7 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0007756/1.24, allocations: 187.9 kB / 1.481 GB, free: 130.5 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001867/1.242, allocations: 2.251 MB / 1.483 GB, free: 128.2 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001525/1.243, allocations: 0.9968 MB / 1.484 GB, free: 127.2 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/1.243, allocations: 0 / 1.484 GB, free: 127.2 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0007999/1.244, allocations: 0.6799 MB / 1.484 GB, free: 126.4 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008505/1.245, allocations: 157 kB / 1.484 GB, free: 126.3 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006416/1.251, allocations: 6.823 MB / 1.491 GB, free: 119.3 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005194/1.252, allocations: 0.9571 MB / 1.492 GB, free: 118.3 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0004843/1.252, allocations: 116.8 kB / 1.492 GB, free: 118.2 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002538/1.253, allocations: 211.4 kB / 1.492 GB, free: 118 MB / 0.9011 GB Notification: Performance of SimCode: time 1.172e-06/1.253, allocations: 0 / 1.492 GB, free: 118 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02839/1.281, allocations: 13.21 MB / 1.505 GB, free: 105.1 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/1.281, allocations: 215.6 kB / 1.506 GB, free: 104.8 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.446/3.728, allocations: 0 / 1.506 GB, free: 104.8 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat does not exist to compare? outputFormat=mat