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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 91.14 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 223.3 MB / 240 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.372/2.372, allocations: 390.4 MB / 0.6655 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003343/0.0003343, allocations: 11.98 kB / 0.8149 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7226/0.7229, allocations: 142.3 MB / 0.9539 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.005967/0.7289, allocations: 5.985 MB / 0.9597 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004214/0.7332, allocations: 2.863 MB / 0.9625 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003902/0.7336, allocations: 20.47 kB / 0.9625 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003107/0.7339, allocations: 140.9 kB / 0.9627 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0007752/0.7347, allocations: 415.5 kB / 0.963 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007616/0.7355, allocations: 319.3 kB / 0.9634 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001262/0.7368, allocations: 1.323 MB / 0.9646 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00162/0.7384, allocations: 0.9266 MB / 0.9655 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007446/0.7392, allocations: 394.6 kB / 0.9659 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007118/0.7399, allocations: 484.5 kB / 0.9664 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.616e-05/0.74, allocations: 35.53 kB / 0.9664 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005791/0.7406, allocations: 191.2 kB / 0.9666 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0003076/0.7409, allocations: 274.3 kB / 0.9669 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002229/0.7411, allocations: 173 kB / 0.967 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0009518/0.7421, allocations: 0.9057 MB / 0.9679 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.902e-06/0.7421, allocations: 0 / 0.9679 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.372e-06/0.7421, allocations: 4 kB / 0.9679 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.188e-05/0.7421, allocations: 0.9688 kB / 0.9679 GB, free: 13.7 MB / 0.7325 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.001682/0.7438, allocations: 1.01 MB / 0.9689 GB, free: 12.9 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.7439, allocations: 9.094 kB / 0.9689 GB, free: 12.9 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001658/0.744, allocations: 129.8 kB / 0.969 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001583/0.7456, allocations: 233.3 kB / 0.9693 GB, free: 12.69 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008194/0.7465, allocations: 0.5305 MB / 0.9698 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.483e-05/0.7465, allocations: 55.48 kB / 0.9698 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.594e-05/0.7466, allocations: 61.11 kB / 0.9699 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.7481, allocations: 1.074 MB / 0.9709 GB, free: 11.42 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/0.7482, allocations: 6.875 kB / 0.9709 GB, free: 11.42 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.569e-05/0.7482, allocations: 38.12 kB / 0.971 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001475/0.7484, allocations: 84.22 kB / 0.9711 GB, free: 11.37 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.7496, allocations: 0.7439 MB / 0.9718 GB, free: 11 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005591/0.7552, allocations: 5.893 MB / 0.9775 GB, free: 5.516 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/0.7562, allocations: 0.5536 MB / 0.9781 GB, free: 5.23 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005154/0.7567, allocations: 323.4 kB / 0.9784 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.878e-05/0.7568, allocations: 9.484 kB / 0.9784 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.657e-05/0.7568, allocations: 38.31 kB / 0.9784 GB, free: 5.02 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=47): time 2.455e-06/0.7568, allocations: 0 / 0.9784 GB, free: 5.02 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.003811/0.7607, allocations: 1.993 MB / 0.9804 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.7607, allocations: 56.38 kB / 0.9804 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006495/0.7614, allocations: 0.5498 MB / 0.981 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.149e-05/0.7614, allocations: 36.58 kB / 0.981 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002641/0.7617, allocations: 415.2 kB / 0.9814 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.7618, allocations: 172.6 kB / 0.9816 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.3e-05/0.7619, allocations: 10.66 kB / 0.9816 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.762, allocations: 381.7 kB / 0.9819 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004246/0.7625, allocations: 275 kB / 0.9822 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000523/0.763, allocations: 496.9 kB / 0.9827 GB, free: 1.66 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004943/0.7635, allocations: 342 kB / 0.983 GB, free: 1.332 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.7635, allocations: 3.938 kB / 0.983 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001787/0.7653, allocations: 1.079 MB / 0.9841 GB, free: 232 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.7653, allocations: 8.125 kB / 0.9841 GB, free: 224 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.7654, allocations: 12 kB / 0.9841 GB, free: 212 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00086/0.7662, allocations: 287.2 kB / 0.9844 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004518/0.7667, allocations: 123.8 kB / 0.9845 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006108/0.7728, allocations: 6.591 MB / 0.9909 GB, free: 8.668 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006803/0.7735, allocations: 39.97 kB / 0.991 GB, free: 8.629 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.764e-05/0.7736, allocations: 27.94 kB / 0.991 GB, free: 8.602 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (67): * Single equations (assignments): 63 * 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.0003861/0.774, allocations: 257.6 kB / 0.9912 GB, free: 8.34 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.7741, allocations: 75.11 kB / 0.9913 GB, free: 8.266 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00151/0.7756, allocations: 0.8769 MB / 0.9922 GB, free: 7.367 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.7756, allocations: 8 kB / 0.9922 GB, free: 7.359 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.7756, allocations: 4 kB / 0.9922 GB, free: 7.355 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.7756, allocations: 3.984 kB / 0.9922 GB, free: 7.352 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002439/0.7781, allocations: 1.732 MB / 0.9939 GB, free: 5.531 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.7781, allocations: 4 kB / 0.9939 GB, free: 5.527 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002489/0.7784, allocations: 59.95 kB / 0.9939 GB, free: 5.469 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006666/0.779, allocations: 267.3 kB / 0.9942 GB, free: 5.195 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.345e-05/0.7791, allocations: 12 kB / 0.9942 GB, free: 5.184 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005662/0.7847, allocations: 6.576 MB / 1.001 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.7848, allocations: 3.938 kB / 1.001 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001497/0.7863, allocations: 0.9757 MB / 1.002 GB, free: 13.04 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003105/0.7866, allocations: 192.2 kB / 1.002 GB, free: 12.84 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.286e-05/0.7867, allocations: 15.95 kB / 1.002 GB, free: 12.82 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003372/0.787, allocations: 31.97 kB / 1.002 GB, free: 12.79 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.811e-05/0.7871, allocations: 43.88 kB / 1.002 GB, free: 12.75 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.26e-05/0.7872, allocations: 16 kB / 1.002 GB, free: 12.73 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004328/0.7876, allocations: 379.1 kB / 1.002 GB, free: 12.36 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7876, allocations: 0 / 1.002 GB, free: 12.36 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0008509/0.7885, allocations: 224 kB / 1.002 GB, free: 12.14 MB / 0.7637 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%) 2,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001704/0.7902, allocations: 1.529 MB / 1.004 GB, free: 10.56 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00185/0.7921, allocations: 1.275 MB / 1.005 GB, free: 9.234 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.7921, allocations: 0 / 1.005 GB, free: 9.234 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0011/0.7932, allocations: 0.9009 MB / 1.006 GB, free: 8.281 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009735/0.7942, allocations: 206.5 kB / 1.006 GB, free: 8.086 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005967/0.8001, allocations: 4.389 MB / 1.011 GB, free: 3.516 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005934/0.8007, allocations: 1.005 MB / 1.012 GB, free: 2.48 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004253/0.8012, allocations: 122.1 kB / 1.012 GB, free: 2.359 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003069/0.8015, allocations: 251.3 kB / 1.012 GB, free: 2.113 MB / 0.7637 GB Notification: Performance of SimCode: time 2.485e-06/0.8015, allocations: 0 / 1.012 GB, free: 2.113 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0318/0.8333, allocations: 16.22 MB / 1.028 GB, free: 2.195 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002288/0.8336, allocations: 207.5 kB / 1.028 GB, free: 1.961 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.116/2.95, allocations: 0 / 1.028 GB, free: 1.961 MB / 0.7794 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