Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,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.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,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.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 195.1 kB / 16.53 MB, free: 6.691 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.383/1.383, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.715/2.715, allocations: 472.6 MB / 0.7451 GB, free: 4.656 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 66.06 kB / 0.9121 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2744, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.007173/0.2816, allocations: 6.094 MB / 1.074 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.004756/0.2864, allocations: 3.145 MB / 1.077 GB, free: 1.117 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004657/0.2869, allocations: 27.81 kB / 1.077 GB, free: 1.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.002276/0.2892, allocations: 0.9259 MB / 1.078 GB, free: 164 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001226/0.2905, allocations: 477.5 kB / 1.079 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001124/0.2916, allocations: 490.3 kB / 1.079 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001093/0.2927, allocations: 1.088 MB / 1.08 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008404/0.2936, allocations: 0.643 MB / 1.081 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005377/0.2941, allocations: 430.4 kB / 1.081 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005209/0.2946, allocations: 470.2 kB / 1.082 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 9.31e-05/0.2947, allocations: 60 kB / 1.082 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008661/0.2956, allocations: 490.9 kB / 1.082 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002547/0.2959, allocations: 287.2 kB / 1.082 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003436/0.2962, allocations: 398 kB / 1.083 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001155/0.2974, allocations: 1.16 MB / 1.084 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2974, allocations: 0 / 1.084 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.094e-06/0.2974, allocations: 0 / 1.084 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.121e-05/0.2974, allocations: 0 / 1.084 GB, free: 10.22 MB / 0.8419 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.001478/0.2989, allocations: 1.052 MB / 1.085 GB, free: 9.113 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.299, allocations: 12.03 kB / 1.085 GB, free: 9.102 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001501/0.3005, allocations: 215.7 kB / 1.085 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007008/0.3012, allocations: 0.5375 MB / 1.086 GB, free: 8.316 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.679e-05/0.3012, allocations: 49.67 kB / 1.086 GB, free: 8.27 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.3013, allocations: 60.36 kB / 1.086 GB, free: 8.211 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.3027, allocations: 1.034 MB / 1.087 GB, free: 7.059 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.696e-05/0.3027, allocations: 7.938 kB / 1.087 GB, free: 7.051 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.565e-05/0.3028, allocations: 27.98 kB / 1.087 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.778e-05/0.3029, allocations: 73.27 kB / 1.087 GB, free: 6.953 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00097/0.3038, allocations: 0.6879 MB / 1.088 GB, free: 6.266 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004531/0.3084, allocations: 5.764 MB / 1.093 GB, free: 76 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008361/0.3092, allocations: 0.5936 MB / 1.094 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007594/0.31, allocations: 420.6 kB / 1.094 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.622e-05/0.3101, allocations: 4 kB / 1.094 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.3101, allocations: 42.5 kB / 1.094 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=41): time 3.226e-06/0.3101, allocations: 0 / 1.094 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of matching and sorting (n=42): time 0.004327/0.3144, allocations: 2.057 MB / 1.096 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.3145, allocations: 55.41 kB / 1.096 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000457/0.3149, allocations: 454.8 kB / 1.097 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/0.315, allocations: 29.7 kB / 1.097 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002255/0.3152, allocations: 387 kB / 1.097 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.3154, allocations: 153.8 kB / 1.097 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/0.3155, allocations: 110.2 kB / 1.097 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.3157, allocations: 366.8 kB / 1.098 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003336/0.316, allocations: 245.2 kB / 1.098 GB, free: 11 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004588/0.3165, allocations: 464.9 kB / 1.098 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008761/0.3174, allocations: 0.7597 MB / 1.099 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.3174, allocations: 4 kB / 1.099 GB, free: 9.598 MB / 0.8575 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001826/0.3192, allocations: 1.066 MB / 1.1 GB, free: 8.512 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.603e-05/0.3192, allocations: 9.406 kB / 1.1 GB, free: 8.504 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.3193, allocations: 4 kB / 1.1 GB, free: 8.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.3203, allocations: 331.6 kB / 1.101 GB, free: 8.164 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003255/0.3206, allocations: 103.8 kB / 1.101 GB, free: 8.062 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00677/0.3274, allocations: 7.512 MB / 1.108 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000468/0.3279, allocations: 27.97 kB / 1.108 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.151e-05/0.328, allocations: 28 kB / 1.108 GB, free: 15.93 MB / 0.8731 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 (53): * Single equations (assignments): 49 * 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 {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003219/0.3283, allocations: 242.4 kB / 1.108 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.826e-05/0.3284, allocations: 59.28 kB / 1.108 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001652/0.33, allocations: 0.9236 MB / 1.109 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3301, allocations: 8.141 kB / 1.109 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3301, allocations: 4 kB / 1.109 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/0.3301, allocations: 7.969 kB / 1.109 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002515/0.3326, allocations: 1.702 MB / 1.111 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.3326, allocations: 0 / 1.111 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.3328, allocations: 44.03 kB / 1.111 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009425/0.3338, allocations: 331.3 kB / 1.111 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.173e-05/0.3338, allocations: 8 kB / 1.111 GB, free: 12.49 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006557/0.3404, allocations: 7.509 MB / 1.119 GB, free: 4.414 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.257e-06/0.3404, allocations: 0 / 1.119 GB, free: 4.414 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001642/0.3421, allocations: 1.011 MB / 1.12 GB, free: 3.355 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002243/0.3423, allocations: 176.6 kB / 1.12 GB, free: 3.164 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.703e-05/0.3424, allocations: 8 kB / 1.12 GB, free: 3.156 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002834/0.3427, allocations: 31.95 kB / 1.12 GB, free: 3.125 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.3428, allocations: 43.83 kB / 1.12 GB, free: 3.082 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.668e-05/0.3428, allocations: 15.98 kB / 1.12 GB, free: 3.066 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003052/0.3431, allocations: 302.9 kB / 1.12 GB, free: 2.773 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3431, allocations: 0 / 1.12 GB, free: 2.773 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0007524/0.3439, allocations: 203.9 kB / 1.12 GB, free: 2.574 MB / 0.8731 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 (23): * Single equations (assignments): 19 * 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 {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001355/0.344, allocations: 103.8 kB / 1.12 GB, free: 2.461 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001826/0.3459, allocations: 1.25 MB / 1.122 GB, free: 1.16 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.3459, allocations: 4.125 kB / 1.122 GB, free: 1.156 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.347, allocations: 0.8694 MB / 1.123 GB, free: 240 kB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009685/0.348, allocations: 205 kB / 1.123 GB, free: 48 kB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001836/0.3499, allocations: 1.238 MB / 1.124 GB, free: 14.77 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005046/0.3504, allocations: 0.9881 MB / 1.125 GB, free: 13.75 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002728/0.3507, allocations: 97.17 kB / 1.125 GB, free: 13.65 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.247e-05/0.3507, allocations: 35.44 kB / 1.125 GB, free: 13.62 MB / 0.8887 GB Notification: Performance of SimCode: time 4.41e-07/0.3507, allocations: 4 kB / 1.125 GB, free: 13.61 MB / 0.8887 GB Notification: Performance of Templates: time 0.01711/0.3679, allocations: 9.961 MB / 1.135 GB, free: 3.75 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches