Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.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.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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,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_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,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_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 108 kB / 15.6 MB, free: 132 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.001305/0.001305, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.523/1.523, 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 10.1.1-maint.10.0.x/package.mo): time 2.736/2.736, allocations: 437 MB / 0.7104 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 63.89 kB / 0.8692 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7769/0.7783, allocations: 151.6 MB / 1.017 GB, free: 2.52 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01285/0.7912, allocations: 10.9 MB / 1.028 GB, free: 7.578 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01281/0.804, allocations: 8.811 MB / 1.037 GB, free: 14.74 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001788/0.8059, allocations: 59.62 kB / 1.037 GB, free: 14.68 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.004775/0.8107, allocations: 1.666 MB / 1.038 GB, free: 13.01 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.005028/0.8157, allocations: 1.522 MB / 1.04 GB, free: 11.48 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002187/0.8179, allocations: 0.6743 MB / 1.04 GB, free: 10.81 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.003449/0.8214, allocations: 2.279 MB / 1.043 GB, free: 8.52 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002279/0.8237, allocations: 1.389 MB / 1.044 GB, free: 7.098 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001889/0.8256, allocations: 0.977 MB / 1.045 GB, free: 6.117 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002029/0.8276, allocations: 1.016 MB / 1.046 GB, free: 5.098 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0004944/0.8281, allocations: 136 kB / 1.046 GB, free: 4.965 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002269/0.8304, allocations: 0.8071 MB / 1.047 GB, free: 4.156 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0008227/0.8313, allocations: 0.5686 MB / 1.047 GB, free: 3.586 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.001904/0.8332, allocations: 0.8823 MB / 1.048 GB, free: 2.699 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.004322/0.8375, allocations: 2.535 MB / 1.051 GB, free: 160 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 1.016e-05/0.8376, allocations: 4 kB / 1.051 GB, free: 156 kB / 0.795 GB Notification: Performance of FrontEnd: time 2.144e-06/0.8376, allocations: 0 / 1.051 GB, free: 156 kB / 0.795 GB Notification: Performance of Transformations before backend: time 9.725e-05/0.8377, allocations: 0 / 1.051 GB, free: 156 kB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.004904/0.8426, allocations: 2.022 MB / 1.053 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.804e-05/0.8427, allocations: 11.98 kB / 1.053 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01179/0.8545, allocations: 2.046 MB / 1.055 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002602/0.8571, allocations: 1.126 MB / 1.056 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.592e-05/0.8572, allocations: 86.7 kB / 1.056 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000449/0.8577, allocations: 124 kB / 1.056 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005956/0.8637, allocations: 2.478 MB / 1.058 GB, free: 7.992 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.47e-05/0.8637, allocations: 3.938 kB / 1.058 GB, free: 7.988 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001834/0.8639, allocations: 56 kB / 1.058 GB, free: 7.934 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003619/0.8643, allocations: 130.1 kB / 1.059 GB, free: 7.805 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007501/0.8718, allocations: 2.537 MB / 1.061 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01346/0.8853, allocations: 10.09 MB / 1.071 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006302/0.8916, allocations: 1.956 MB / 1.073 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002774/0.8944, allocations: 0.971 MB / 1.074 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.457e-05/0.8945, allocations: 4.438 kB / 1.074 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/0.8945, allocations: 39 kB / 1.074 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=53): time 2.355e-06/0.8945, allocations: 3.938 kB / 1.074 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of matching and sorting (n=81): time 0.0327/0.9272, allocations: 8.711 MB / 1.082 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.9273, allocations: 60.06 kB / 1.082 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00169/0.929, allocations: 1.105 MB / 1.083 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.000147/0.9292, allocations: 37.7 kB / 1.083 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005974/0.9298, allocations: 0.7379 MB / 1.084 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003059/0.9301, allocations: 284 kB / 1.084 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003983/0.9305, allocations: 198.4 kB / 1.085 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.9306, allocations: 341.9 kB / 1.085 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00301/0.9336, allocations: 1.083 MB / 1.086 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003096/0.9368, allocations: 1.297 MB / 1.087 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006114/0.9429, allocations: 2.386 MB / 1.09 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.9429, allocations: 4 kB / 1.09 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.009137/0.9521, allocations: 3.277 MB / 1.093 GB, free: 3.652 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/0.9521, allocations: 8 kB / 1.093 GB, free: 3.645 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.9521, allocations: 4 kB / 1.093 GB, free: 3.641 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002795/0.9549, allocations: 0.803 MB / 1.094 GB, free: 2.812 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001943/0.9569, allocations: 407.3 kB / 1.094 GB, free: 2.414 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01683/0.9737, allocations: 15.92 MB / 1.11 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002404/0.9762, allocations: 291.5 kB / 1.11 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001567/0.9763, allocations: 55.97 kB / 1.11 GB, free: 1.02 MB / 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,2,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,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.0007705/0.9771, allocations: 401.5 kB / 1.11 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003294/0.9775, allocations: 146.2 kB / 1.11 GB, free: 484 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009283/0.9868, allocations: 3.202 MB / 1.114 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/0.9868, allocations: 15.94 kB / 1.114 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.997e-05/0.9868, allocations: 8 kB / 1.114 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.732e-05/0.9868, allocations: 7.922 kB / 1.114 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01148/0.9983, allocations: 4.885 MB / 1.118 GB, free: 8.191 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/0.9984, allocations: 11.94 kB / 1.118 GB, free: 8.18 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001691/1, allocations: 363.2 kB / 1.119 GB, free: 7.824 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002353/1.002, allocations: 0.6939 MB / 1.119 GB, free: 7.105 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/1.003, allocations: 35.97 kB / 1.119 GB, free: 7.07 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01561/1.018, allocations: 15.54 MB / 1.135 GB, free: 6.402 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/1.018, allocations: 4 kB / 1.135 GB, free: 6.398 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008574/1.027, allocations: 3.042 MB / 1.138 GB, free: 3.277 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009655/1.028, allocations: 379.2 kB / 1.138 GB, free: 2.887 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002297/1.028, allocations: 20 kB / 1.138 GB, free: 2.867 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001944/1.03, allocations: 295.4 kB / 1.138 GB, free: 2.578 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003225/1.03, allocations: 84.48 kB / 1.138 GB, free: 2.496 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.944e-05/1.03, allocations: 31.97 kB / 1.138 GB, free: 2.465 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001118/1.032, allocations: 0.7405 MB / 1.139 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.1e-07/1.032, allocations: 0 / 1.139 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001624/1.033, allocations: 436 kB / 1.14 GB, free: 1.297 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,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.0003042/1.034, allocations: 128.2 kB / 1.14 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.009138/1.043, allocations: 3.762 MB / 1.143 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 9.718e-06/1.043, allocations: 4.062 kB / 1.143 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.005284/1.048, allocations: 2.367 MB / 1.146 GB, free: 10.82 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002452/1.051, allocations: 0.5225 MB / 1.146 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007469/1.058, allocations: 3.472 MB / 1.15 GB, free: 6.793 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001005/1.059, allocations: 1.38 MB / 1.151 GB, free: 5.379 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.00153/1.061, allocations: 379.9 kB / 1.151 GB, free: 5.004 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003428/1.061, allocations: 103.4 kB / 1.151 GB, free: 4.902 MB / 0.9044 GB Notification: Performance of SimCode: time 9.92e-07/1.061, allocations: 3.938 kB / 1.151 GB, free: 4.898 MB / 0.9044 GB Notification: Performance of Templates: time 0.05298/1.114, allocations: 30.25 MB / 1.181 GB, free: 7.066 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches