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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009359/0.0009357, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.006789/0.006789, allocations: 169.5 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.605/2.605, allocations: 390.9 MB / 0.6663 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004177/0.0004178, allocations: 8 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8579/0.8583, allocations: 142.4 MB / 0.9551 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.007574/0.8659, allocations: 6.304 MB / 0.9612 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.005836/0.8718, allocations: 3.016 MB / 0.9642 GB, free: 408 kB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001126/0.873, allocations: 19.69 kB / 0.9642 GB, free: 400 kB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0007077/0.8737, allocations: 132.2 kB / 0.9643 GB, free: 284 kB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001941/0.8757, allocations: 472.5 kB / 0.9647 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001593/0.8773, allocations: 390.5 kB / 0.9651 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002693/0.88, allocations: 1.579 MB / 0.9667 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002514/0.8826, allocations: 1.012 MB / 0.9677 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001146/0.8837, allocations: 394.8 kB / 0.968 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001123/0.8849, allocations: 0.4965 MB / 0.9685 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001613/0.885, allocations: 35.31 kB / 0.9685 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00124/0.8863, allocations: 441.3 kB / 0.969 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0003599/0.8867, allocations: 266 kB / 0.9692 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0006579/0.8873, allocations: 435.4 kB / 0.9696 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001817/0.8892, allocations: 1.176 MB / 0.9708 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.8892, allocations: 0.7188 kB / 0.9708 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.117e-06/0.8892, allocations: 3.984 kB / 0.9708 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.06e-05/0.8892, allocations: 0.9062 kB / 0.9708 GB, free: 12.11 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.00241/0.8916, allocations: 1.005 MB / 0.9718 GB, free: 11.3 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.819e-05/0.8917, allocations: 9.281 kB / 0.9718 GB, free: 11.3 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001862/0.8936, allocations: 238 kB / 0.972 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.8948, allocations: 0.5435 MB / 0.9725 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.395e-05/0.8949, allocations: 48.2 kB / 0.9726 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001358/0.895, allocations: 69.14 kB / 0.9727 GB, free: 10.7 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001864/0.8969, allocations: 1.088 MB / 0.9737 GB, free: 9.91 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.464e-05/0.8969, allocations: 14.75 kB / 0.9737 GB, free: 9.898 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.381e-05/0.897, allocations: 30.11 kB / 0.9738 GB, free: 9.879 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001943/0.8972, allocations: 84.56 kB / 0.9738 GB, free: 9.855 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001386/0.8986, allocations: 0.757 MB / 0.9746 GB, free: 9.477 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006435/0.9051, allocations: 5.889 MB / 0.9803 GB, free: 4 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.9062, allocations: 0.568 MB / 0.9809 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005113/0.9068, allocations: 325.1 kB / 0.9812 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.63e-05/0.9068, allocations: 5.531 kB / 0.9812 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.9069, allocations: 45.75 kB / 0.9812 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=47): time 2.525e-06/0.9069, allocations: 0 / 0.9812 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.004499/0.9114, allocations: 1.996 MB / 0.9832 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/0.9115, allocations: 59.78 kB / 0.9832 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007154/0.9122, allocations: 0.547 MB / 0.9838 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.695e-05/0.9122, allocations: 37.69 kB / 0.9838 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003102/0.9125, allocations: 414.9 kB / 0.9842 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.9127, allocations: 165.6 kB / 0.9844 GB, free: 0.5234 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.684e-05/0.9128, allocations: 65.69 kB / 0.9844 GB, free: 464 kB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002045/0.913, allocations: 374.7 kB / 0.9848 GB, free: 80 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004665/0.9135, allocations: 277.9 kB / 0.9851 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005936/0.9141, allocations: 489 kB / 0.9855 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/0.9152, allocations: 0.8171 MB / 0.9863 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.9152, allocations: 0 / 0.9863 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001861/0.9171, allocations: 1.086 MB / 0.9874 GB, free: 13.22 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.9171, allocations: 9.25 kB / 0.9874 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.9171, allocations: 11.94 kB / 0.9874 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009352/0.9181, allocations: 287.8 kB / 0.9877 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004993/0.9186, allocations: 127.8 kB / 0.9878 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00673/0.9253, allocations: 6.595 MB / 0.9942 GB, free: 5.652 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008242/0.9262, allocations: 43.95 kB / 0.9943 GB, free: 5.609 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.4e-05/0.9262, allocations: 28 kB / 0.9943 GB, free: 5.582 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,6,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004631/0.9267, allocations: 249.5 kB / 0.9945 GB, free: 5.328 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.9268, allocations: 75.22 kB / 0.9946 GB, free: 5.254 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001734/0.9286, allocations: 0.8923 MB / 0.9955 GB, free: 4.344 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.9286, allocations: 4 kB / 0.9955 GB, free: 4.34 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.9286, allocations: 4 kB / 0.9955 GB, free: 4.336 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.896e-06/0.9286, allocations: 3.984 kB / 0.9955 GB, free: 4.332 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00304/0.9317, allocations: 1.724 MB / 0.9972 GB, free: 2.52 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.9317, allocations: 3.938 kB / 0.9972 GB, free: 2.516 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002796/0.932, allocations: 63.89 kB / 0.9972 GB, free: 2.453 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008293/0.9328, allocations: 275.5 kB / 0.9975 GB, free: 2.172 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.818e-05/0.9329, allocations: 12 kB / 0.9975 GB, free: 2.16 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006706/0.9396, allocations: 6.579 MB / 1.004 GB, free: 11.04 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.9397, allocations: 4.031 kB / 1.004 GB, free: 11.04 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001817/0.9415, allocations: 0.9873 MB / 1.005 GB, free: 10 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004187/0.9419, allocations: 184.3 kB / 1.005 GB, free: 9.805 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.981e-05/0.942, allocations: 15.94 kB / 1.005 GB, free: 9.789 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003946/0.9424, allocations: 35.95 kB / 1.005 GB, free: 9.754 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.9425, allocations: 31.95 kB / 1.005 GB, free: 9.723 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.287e-05/0.9426, allocations: 20 kB / 1.005 GB, free: 9.703 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004706/0.943, allocations: 387.1 kB / 1.006 GB, free: 9.328 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9431, allocations: 0 / 1.006 GB, free: 9.328 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0009082/0.944, allocations: 220 kB / 1.006 GB, free: 9.113 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001873/0.9442, allocations: 115.7 kB / 1.006 GB, free: 8.992 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002127/0.9463, allocations: 1.275 MB / 1.007 GB, free: 7.668 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.9463, allocations: 0 / 1.007 GB, free: 7.668 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001296/0.9476, allocations: 0.8974 MB / 1.008 GB, free: 6.719 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001278/0.9489, allocations: 220.5 kB / 1.008 GB, free: 6.508 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002759/0.9517, allocations: 1.655 MB / 1.01 GB, free: 4.805 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007782/0.9525, allocations: 1.009 MB / 1.011 GB, free: 3.766 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0005656/0.9531, allocations: 118.1 kB / 1.011 GB, free: 3.648 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.9532, allocations: 39.44 kB / 1.011 GB, free: 3.613 MB / 0.7637 GB Notification: Performance of SimCode: time 2.014e-06/0.9532, allocations: 0 / 1.011 GB, free: 3.613 MB / 0.7637 GB Notification: Performance of Templates: time 0.02373/0.977, allocations: 10.6 MB / 1.021 GB, free: 9.133 MB / 0.7794 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (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 & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches