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.00135/0.00135, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001467/0.001467, allocations: 187.9 kB / 16.25 MB, free: 6.59 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.404/1.404, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.799/2.799, allocations: 472.6 MB / 0.7448 GB, free: 4.84 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 71.16 kB / 0.9116 GB, free: 33.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2827, allocations: 159.9 MB / 1.068 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.007006/0.2897, allocations: 6.096 MB / 1.074 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.004436/0.2942, allocations: 3.13 MB / 1.077 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002945/0.2945, allocations: 27.81 kB / 1.077 GB, free: 1.414 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.002134/0.2967, allocations: 0.8827 MB / 1.078 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0008804/0.2976, allocations: 430 kB / 1.078 GB, free: 112 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.2986, allocations: 434.4 kB / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0009722/0.2996, allocations: 1.1 MB / 1.08 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008726/0.3005, allocations: 0.7172 MB / 1.08 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004347/0.3009, allocations: 442.3 kB / 1.081 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004677/0.3014, allocations: 490.2 kB / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 7.358e-05/0.3015, allocations: 60 kB / 1.081 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006798/0.3022, allocations: 487 kB / 1.082 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002478/0.3024, allocations: 291.2 kB / 1.082 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003263/0.3028, allocations: 394 kB / 1.082 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.3038, allocations: 1.195 MB / 1.083 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3038, allocations: 3.984 kB / 1.083 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.823e-06/0.3038, allocations: 0 / 1.083 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.022e-05/0.3039, allocations: 4 kB / 1.083 GB, free: 10.54 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.001444/0.3053, allocations: 1.056 MB / 1.084 GB, free: 9.426 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.3054, allocations: 8.031 kB / 1.085 GB, free: 9.418 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001444/0.3068, allocations: 211.7 kB / 1.085 GB, free: 9.211 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007014/0.3075, allocations: 0.5375 MB / 1.085 GB, free: 8.641 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.76e-05/0.3076, allocations: 49.67 kB / 1.085 GB, free: 8.594 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.367e-05/0.3077, allocations: 68.36 kB / 1.085 GB, free: 8.527 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.309, allocations: 1.03 MB / 1.086 GB, free: 7.379 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.466e-05/0.309, allocations: 7.938 kB / 1.086 GB, free: 7.371 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.785e-05/0.3091, allocations: 31.98 kB / 1.086 GB, free: 7.34 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.2e-05/0.3092, allocations: 69.27 kB / 1.086 GB, free: 7.273 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009663/0.3101, allocations: 0.6957 MB / 1.087 GB, free: 6.578 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004433/0.3146, allocations: 5.748 MB / 1.093 GB, free: 412 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007854/0.3154, allocations: 0.6077 MB / 1.093 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000731/0.3161, allocations: 412.6 kB / 1.094 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.78e-05/0.3162, allocations: 11.94 kB / 1.094 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.3162, allocations: 38.56 kB / 1.094 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=41): time 2.505e-06/0.3162, allocations: 0 / 1.094 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of matching and sorting (n=42): time 0.004154/0.3204, allocations: 2.052 MB / 1.096 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.3204, allocations: 55.41 kB / 1.096 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004099/0.3208, allocations: 454.8 kB / 1.096 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.411e-05/0.3209, allocations: 33.7 kB / 1.096 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002217/0.3211, allocations: 391 kB / 1.097 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.3212, allocations: 153.8 kB / 1.097 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001544/0.3214, allocations: 114.2 kB / 1.097 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.3215, allocations: 358.8 kB / 1.097 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003322/0.3219, allocations: 249.2 kB / 1.098 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004404/0.3223, allocations: 461 kB / 1.098 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008361/0.3232, allocations: 0.7597 MB / 1.099 GB, free: 9.918 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.3232, allocations: 0 / 1.099 GB, free: 9.918 MB / 0.8575 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001733/0.3249, allocations: 1.057 MB / 1.1 GB, free: 8.84 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.3249, allocations: 8 kB / 1.1 GB, free: 8.832 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.325, allocations: 8.844 kB / 1.1 GB, free: 8.824 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001018/0.326, allocations: 335 kB / 1.1 GB, free: 8.484 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002955/0.3263, allocations: 95.83 kB / 1.1 GB, free: 8.391 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006522/0.3328, allocations: 7.524 MB / 1.108 GB, free: 308 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00036/0.3332, allocations: 32.02 kB / 1.108 GB, free: 276 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.201e-05/0.3332, allocations: 28 kB / 1.108 GB, free: 248 kB / 0.8575 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.0002869/0.3335, allocations: 237.6 kB / 1.108 GB, free: 0 / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.693e-05/0.3336, allocations: 63.33 kB / 1.108 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001674/0.3353, allocations: 0.9197 MB / 1.109 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.3353, allocations: 4 kB / 1.109 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3353, allocations: 4 kB / 1.109 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.3354, allocations: 3.984 kB / 1.109 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002597/0.338, allocations: 1.71 MB / 1.11 GB, free: 13.19 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.338, allocations: 0 / 1.11 GB, free: 13.19 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/0.3381, allocations: 47.91 kB / 1.11 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009701/0.3391, allocations: 327.2 kB / 1.111 GB, free: 12.81 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.13e-05/0.3392, allocations: 8 kB / 1.111 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006422/0.3456, allocations: 7.501 MB / 1.118 GB, free: 4.738 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.3456, allocations: 4.031 kB / 1.118 GB, free: 4.734 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0016/0.3472, allocations: 1.019 MB / 1.119 GB, free: 3.668 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000208/0.3474, allocations: 172.4 kB / 1.119 GB, free: 3.48 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.538e-05/0.3475, allocations: 11.98 kB / 1.119 GB, free: 3.469 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002679/0.3478, allocations: 19.98 kB / 1.119 GB, free: 3.449 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.401e-05/0.3479, allocations: 43.88 kB / 1.119 GB, free: 3.406 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.737e-05/0.3479, allocations: 16 kB / 1.119 GB, free: 3.391 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002854/0.3482, allocations: 298.9 kB / 1.12 GB, free: 3.102 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3482, allocations: 4 kB / 1.12 GB, free: 3.098 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0007247/0.349, allocations: 203.9 kB / 1.12 GB, free: 2.898 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.0001343/0.3491, allocations: 103.2 kB / 1.12 GB, free: 2.785 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001778/0.3509, allocations: 1.257 MB / 1.121 GB, free: 1.477 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.3509, allocations: 0 / 1.121 GB, free: 1.477 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.352, allocations: 0.8582 MB / 1.122 GB, free: 0.5664 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009315/0.3529, allocations: 206.6 kB / 1.122 GB, free: 384 kB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001846/0.3548, allocations: 1.524 MB / 1.124 GB, free: 14.81 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005005/0.3553, allocations: 0.9881 MB / 1.125 GB, free: 13.79 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002709/0.3556, allocations: 101.3 kB / 1.125 GB, free: 13.69 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.806e-05/0.3557, allocations: 35.44 kB / 1.125 GB, free: 13.66 MB / 0.8887 GB Notification: Performance of SimCode: time 2.2e-07/0.3557, allocations: 0 / 1.125 GB, free: 13.66 MB / 0.8887 GB Notification: Performance of Templates: time 0.01563/0.3713, allocations: 10.02 MB / 1.135 GB, free: 3.73 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