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/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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001072, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001749/0.001749, allocations: 168.7 kB / 15.95 MB, free: 204 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.443/1.443, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.582/2.582, allocations: 409.4 MB / 0.684 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003632/0.0003634, allocations: 8 kB / 0.8378 GB, free: 6.453 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8498/0.8502, allocations: 146.8 MB / 0.9811 GB, free: 6.238 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006508/0.8568, allocations: 4.843 MB / 0.9859 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004152/0.861, allocations: 2.464 MB / 0.9883 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000319/0.8613, allocations: 19.88 kB / 0.9883 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.000307/0.8616, allocations: 103.1 kB / 0.9884 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.0008407/0.8625, allocations: 334.2 kB / 0.9887 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007419/0.8632, allocations: 287.3 kB / 0.989 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.000983/0.8642, allocations: 1.041 MB / 0.99 GB, free: 13.13 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001256/0.8655, allocations: 0.7464 MB / 0.9907 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004707/0.866, allocations: 310.7 kB / 0.991 GB, free: 12.04 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005087/0.8665, allocations: 374.6 kB / 0.9914 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 5.865e-05/0.8665, allocations: 28 kB / 0.9914 GB, free: 11.65 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005797/0.8671, allocations: 183.8 kB / 0.9916 GB, free: 11.47 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.000232/0.8674, allocations: 215.4 kB / 0.9918 GB, free: 11.26 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.8675, allocations: 141.4 kB / 0.9919 GB, free: 11.11 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0007506/0.8683, allocations: 0.7267 MB / 0.9926 GB, free: 10.39 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.8683, allocations: 4 kB / 0.9926 GB, free: 10.38 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.873e-06/0.8683, allocations: 4 kB / 0.9926 GB, free: 10.38 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 8.626e-06/0.8683, allocations: 0 / 0.9926 GB, free: 10.38 MB / 0.7481 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.001376/0.8697, allocations: 0.8452 MB / 0.9935 GB, free: 9.48 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.8698, allocations: 11.97 kB / 0.9935 GB, free: 9.469 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001213/0.8699, allocations: 106.5 kB / 0.9936 GB, free: 9.355 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001371/0.8713, allocations: 191 kB / 0.9938 GB, free: 9.168 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000687/0.872, allocations: 477.4 kB / 0.9942 GB, free: 8.66 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.324e-05/0.872, allocations: 36.98 kB / 0.9943 GB, free: 8.625 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001512/0.8722, allocations: 59.91 kB / 0.9943 GB, free: 8.566 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.8735, allocations: 0.8277 MB / 0.9951 GB, free: 7.66 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.769e-05/0.8735, allocations: 4 kB / 0.9951 GB, free: 7.656 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.989e-05/0.8736, allocations: 23.98 kB / 0.9952 GB, free: 7.633 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001873/0.8737, allocations: 68.94 kB / 0.9952 GB, free: 7.562 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000873/0.8746, allocations: 0.5657 MB / 0.9958 GB, free: 7 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00451/0.8792, allocations: 4.589 MB / 1 GB, free: 2.059 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005088/0.8797, allocations: 295.2 kB / 1.001 GB, free: 1.762 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003125/0.88, allocations: 225.3 kB / 1.001 GB, free: 1.539 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/0.88, allocations: 8.219 kB / 1.001 GB, free: 1.531 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.8801, allocations: 38.84 kB / 1.001 GB, free: 1.484 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=33): time 2.254e-06/0.8801, allocations: 0 / 1.001 GB, free: 1.484 MB / 0.7481 GB Notification: Performance of matching and sorting (n=40): time 0.005593/0.8857, allocations: 2.626 MB / 1.003 GB, free: 14.73 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/0.8858, allocations: 55.41 kB / 1.003 GB, free: 14.66 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005397/0.8863, allocations: 461.8 kB / 1.004 GB, free: 14.2 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 3.856e-05/0.8864, allocations: 29.7 kB / 1.004 GB, free: 14.16 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.000303/0.8867, allocations: 339.6 kB / 1.004 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.8868, allocations: 138.1 kB / 1.004 GB, free: 13.69 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.181e-05/0.8868, allocations: 16 kB / 1.004 GB, free: 13.67 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001778/0.887, allocations: 362.8 kB / 1.005 GB, free: 13.31 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003509/0.8874, allocations: 237 kB / 1.005 GB, free: 13.08 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004866/0.8879, allocations: 410.2 kB / 1.005 GB, free: 12.6 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000434/0.8883, allocations: 293.7 kB / 1.006 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.8883, allocations: 4 kB / 1.006 GB, free: 12.31 MB / 0.7637 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001574/0.8899, allocations: 0.9134 MB / 1.006 GB, free: 11.38 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.8899, allocations: 12.61 kB / 1.007 GB, free: 11.37 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.89, allocations: 4 kB / 1.007 GB, free: 11.37 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007164/0.8907, allocations: 222.4 kB / 1.007 GB, free: 11.14 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005387/0.8913, allocations: 119.8 kB / 1.007 GB, free: 11.02 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005038/0.8963, allocations: 4.934 MB / 1.012 GB, free: 5.695 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004545/0.8968, allocations: 31.97 kB / 1.012 GB, free: 5.664 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.242e-05/0.8968, allocations: 24 kB / 1.012 GB, free: 5.641 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * 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.0003721/0.8972, allocations: 235.1 kB / 1.012 GB, free: 5.402 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.229e-05/0.8973, allocations: 55.34 kB / 1.012 GB, free: 5.348 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001493/0.8988, allocations: 0.7659 MB / 1.013 GB, free: 4.562 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.8988, allocations: 7.938 kB / 1.013 GB, free: 4.555 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.8988, allocations: 4 kB / 1.013 GB, free: 4.551 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.8988, allocations: 0 / 1.013 GB, free: 4.551 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002431/0.9013, allocations: 1.494 MB / 1.014 GB, free: 2.969 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.9013, allocations: 3.953 kB / 1.014 GB, free: 2.965 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003497/0.9017, allocations: 68.12 kB / 1.014 GB, free: 2.898 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006275/0.9023, allocations: 210.4 kB / 1.014 GB, free: 2.684 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.052e-05/0.9023, allocations: 11.94 kB / 1.014 GB, free: 2.672 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004954/0.9073, allocations: 4.86 MB / 1.019 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.9073, allocations: 3.938 kB / 1.019 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001866/0.9092, allocations: 1.131 MB / 1.02 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002485/0.9094, allocations: 176.2 kB / 1.021 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.656e-05/0.9095, allocations: 8 kB / 1.021 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002899/0.9098, allocations: 31.91 kB / 1.021 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.209e-05/0.9099, allocations: 36.02 kB / 1.021 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.187e-05/0.9099, allocations: 16 kB / 1.021 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000376/0.9103, allocations: 302.9 kB / 1.021 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9103, allocations: 0 / 1.021 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0008259/0.9112, allocations: 168 kB / 1.021 GB, free: 11.49 MB / 0.7794 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.002099/0.9133, allocations: 1.686 MB / 1.023 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001672/0.915, allocations: 1.005 MB / 1.024 GB, free: 8.703 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.915, allocations: 0 / 1.024 GB, free: 8.703 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0009651/0.9159, allocations: 0.6838 MB / 1.024 GB, free: 7.98 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008485/0.9168, allocations: 173.3 kB / 1.024 GB, free: 7.816 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00584/0.9227, allocations: 3.816 MB / 1.028 GB, free: 3.848 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006356/0.9233, allocations: 0.9494 MB / 1.029 GB, free: 2.867 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0004096/0.9237, allocations: 113 kB / 1.029 GB, free: 2.754 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002845/0.924, allocations: 207.4 kB / 1.029 GB, free: 2.551 MB / 0.7794 GB Notification: Performance of SimCode: time 9.01e-07/0.924, allocations: 4 kB / 1.029 GB, free: 2.547 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03034/0.9544, allocations: 13.2 MB / 1.042 GB, free: 5.645 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000392/0.9548, allocations: 220.9 kB / 1.043 GB, free: 5.406 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.103/3.058, allocations: 0 / 1.043 GB, free: 5.406 MB / 0.795 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) Environment - environmentSimulation: 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