Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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_L,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L",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.245/2.245, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001063/0.001063, allocations: 169.2 kB / 498.1 MB, free: 5.742 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.457/1.457, allocations: 223.2 MB / 0.7948 GB, free: 17.95 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.0009633/0.0009634, allocations: 99.95 kB / 0.9346 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004281/0.0004285, allocations: 12.16 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2833, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2088/0.4921, allocations: 172.8 MB / 1.392 GB, free: 5.133 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003005/0.4925, allocations: 91.94 kB / 1.392 GB, free: 5.043 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.735/1.227, allocations: 40.39 MB / 1.431 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.966e-06/1.228, allocations: 2.5 kB / 1.431 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 8.161e-05/1.228, allocations: 25.36 kB / 1.431 GB, free: 181.4 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.002495/1.23, allocations: 0.9412 MB / 1.432 GB, free: 180.8 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/1.23, allocations: 9.344 kB / 1.432 GB, free: 180.8 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003566/1.231, allocations: 118.8 kB / 1.432 GB, free: 180.8 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00181/1.232, allocations: 220.9 kB / 1.433 GB, free: 180.7 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001385/1.234, allocations: 0.5352 MB / 1.433 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.012e-05/1.234, allocations: 47.2 kB / 1.433 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001882/1.234, allocations: 66.05 kB / 1.433 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001884/1.236, allocations: 1.084 MB / 1.434 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.651e-05/1.236, allocations: 12.42 kB / 1.434 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.333e-05/1.236, allocations: 38.98 kB / 1.434 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001049/1.236, allocations: 61.23 kB / 1.434 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/1.238, allocations: 0.6858 MB / 1.435 GB, free: 180 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005674/1.243, allocations: 5.778 MB / 1.441 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009265/1.244, allocations: 0.5876 MB / 1.441 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 3.584e-05/1.244, allocations: 4.781 kB / 1.441 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/1.244, allocations: 39.98 kB / 1.441 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=41): time 2.305e-06/1.244, allocations: 0 / 1.441 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of matching and sorting (n=42): time 0.004367/1.249, allocations: 1.911 MB / 1.443 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/1.249, allocations: 55.94 kB / 1.443 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006315/1.249, allocations: 390.2 kB / 1.444 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/1.249, allocations: 33.61 kB / 1.444 GB, free: 174.6 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002453/1.25, allocations: 381.9 kB / 1.444 GB, free: 174.4 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/1.25, allocations: 145.7 kB / 1.444 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.702e-05/1.25, allocations: 11.03 kB / 1.444 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001172/1.25, allocations: 367.3 kB / 1.444 GB, free: 174 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003859/1.25, allocations: 228.5 kB / 1.445 GB, free: 174 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004972/1.251, allocations: 414.6 kB / 1.445 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000477/1.251, allocations: 289 kB / 1.445 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/1.251, allocations: 2.562 kB / 1.445 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001948/1.253, allocations: 0.9558 MB / 1.446 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/1.253, allocations: 7.875 kB / 1.446 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.832e-05/1.253, allocations: 7.734 kB / 1.446 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/1.254, allocations: 265.5 kB / 1.447 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003785/1.255, allocations: 94.06 kB / 1.447 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005934/1.261, allocations: 6.764 MB / 1.453 GB, free: 168.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005283/1.261, allocations: 34.2 kB / 1.453 GB, free: 168.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.12e-05/1.261, allocations: 24.38 kB / 1.453 GB, free: 168.5 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 (51): * Single equations (assignments): 47 * 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,(1,100.0%) 5,(1,100.0%) 3,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004571/1.262, allocations: 240.4 kB / 1.454 GB, free: 168.4 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/1.262, allocations: 57.09 kB / 1.454 GB, free: 168.3 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001814/1.264, allocations: 0.8363 MB / 1.454 GB, free: 168.2 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/1.264, allocations: 4.188 kB / 1.454 GB, free: 168.2 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.699e-05/1.264, allocations: 7.906 kB / 1.454 GB, free: 168.2 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/1.264, allocations: 2.719 kB / 1.454 GB, free: 168.2 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003383/1.267, allocations: 1.725 MB / 1.456 GB, free: 167.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/1.267, allocations: 4.594 kB / 1.456 GB, free: 167.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002519/1.268, allocations: 50.69 kB / 1.456 GB, free: 167.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008316/1.268, allocations: 250.2 kB / 1.456 GB, free: 167.7 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.988e-05/1.268, allocations: 14.53 kB / 1.456 GB, free: 167.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005239/1.274, allocations: 6.463 MB / 1.463 GB, free: 162.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/1.274, allocations: 6.531 kB / 1.463 GB, free: 162.6 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001651/1.275, allocations: 0.9747 MB / 1.464 GB, free: 162 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003566/1.276, allocations: 172.9 kB / 1.464 GB, free: 161.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/1.276, allocations: 8.438 kB / 1.464 GB, free: 161.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003236/1.276, allocations: 24.89 kB / 1.464 GB, free: 161.8 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/1.276, allocations: 39.81 kB / 1.464 GB, free: 161.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.473e-05/1.276, allocations: 13.38 kB / 1.464 GB, free: 161.8 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0004056/1.277, allocations: 304.7 kB / 1.464 GB, free: 161.6 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.51e-07/1.277, allocations: 7.875 kB / 1.464 GB, free: 161.6 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.001155/1.278, allocations: 191 kB / 1.464 GB, free: 161.6 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 (27): * Single equations (assignments): 23 * 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,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00184/1.28, allocations: 1.944 MB / 1.466 GB, free: 160.1 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001781/1.282, allocations: 1.13 MB / 1.467 GB, free: 159.4 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/1.282, allocations: 0 / 1.467 GB, free: 159.4 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.001037/1.283, allocations: 0.7924 MB / 1.468 GB, free: 158.8 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009444/1.284, allocations: 176 kB / 1.468 GB, free: 158.8 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007886/1.291, allocations: 7.759 MB / 1.476 GB, free: 152.8 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006495/1.292, allocations: 1.003 MB / 1.477 GB, free: 152 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0004166/1.293, allocations: 104.8 kB / 1.477 GB, free: 152 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/1.293, allocations: 219.4 kB / 1.477 GB, free: 151.8 MB / 0.9167 GB Notification: Performance of SimCode: time 1.643e-06/1.293, allocations: 3.688 kB / 1.477 GB, free: 151.8 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02868/1.322, allocations: 13.96 MB / 1.491 GB, free: 151.1 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001389/1.322, allocations: 210.6 kB / 1.491 GB, free: 150.9 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.344/3.665, allocations: 0 / 1.491 GB, free: 150.9 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat does not exist to compare? outputFormat=mat