Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.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.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 118.3 kB / 16.42 MB, free: 6.461 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.001556/0.001556, allocations: 189.4 kB / 17.35 MB, free: 5.715 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.435/1.435, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.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.282/2.282, allocations: 390.3 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 63.91 kB / 0.9515 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.157/1.158, allocations: 140.4 MB / 1.089 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.004989/1.163, allocations: 3.024 MB / 1.092 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003629/1.167, allocations: 1.907 MB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002154/1.167, allocations: 4.094 kB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008918/1.168, allocations: 235.5 kB / 1.094 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006285/1.169, allocations: 224.4 kB / 1.094 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008416/1.169, allocations: 245.5 kB / 1.094 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005885/1.17, allocations: 396.8 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000515/1.171, allocations: 208.9 kB / 1.095 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003222/1.171, allocations: 160.2 kB / 1.095 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004071/1.171, allocations: 182.7 kB / 1.095 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.633e-05/1.171, allocations: 26.12 kB / 1.095 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006758/1.172, allocations: 284.9 kB / 1.095 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001556/1.172, allocations: 105.6 kB / 1.095 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002355/1.173, allocations: 145.8 kB / 1.096 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0009529/1.174, allocations: 486.9 kB / 1.096 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/1.174, allocations: 3.938 kB / 1.096 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.893e-06/1.174, allocations: 0 / 1.096 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.073e-06/1.174, allocations: 0 / 1.096 GB, free: 0.957 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.00144/1.175, allocations: 0.6423 MB / 1.097 GB, free: 432 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/1.175, allocations: 13.28 kB / 1.097 GB, free: 428 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001039/1.176, allocations: 115.3 kB / 1.097 GB, free: 408 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004451/1.177, allocations: 285.9 kB / 1.097 GB, free: 148 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/1.177, allocations: 16.84 kB / 1.097 GB, free: 140 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.821e-05/1.177, allocations: 23.31 kB / 1.097 GB, free: 132 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/1.178, allocations: 434.8 kB / 1.097 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/1.178, allocations: 0.5312 kB / 1.097 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.158e-05/1.178, allocations: 10.25 kB / 1.098 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.944e-05/1.178, allocations: 31.23 kB / 1.098 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/1.179, allocations: 404.2 kB / 1.098 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002565/1.182, allocations: 1.621 MB / 1.1 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001615/1.183, allocations: 476.8 kB / 1.1 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006212/1.184, allocations: 201.4 kB / 1.1 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002129/1.184, allocations: 95.33 kB / 1.1 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008222/1.185, allocations: 282.1 kB / 1.101 GB, free: 14 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=27): time 2.945e-06/1.185, allocations: 0 / 1.101 GB, free: 14 MB / 0.8731 GB Notification: Performance of matching and sorting (n=28): time 0.002771/1.188, allocations: 0.7547 MB / 1.101 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/1.188, allocations: 82 kB / 1.101 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003636/1.188, allocations: 226.6 kB / 1.102 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.035e-05/1.188, allocations: 31.58 kB / 1.102 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/1.189, allocations: 167.7 kB / 1.102 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/1.189, allocations: 95.27 kB / 1.102 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/1.189, allocations: 72.78 kB / 1.102 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002017/1.189, allocations: 331.3 kB / 1.102 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005695/1.19, allocations: 177.2 kB / 1.102 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006452/1.19, allocations: 252.2 kB / 1.103 GB, free: 12.6 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/1.192, allocations: 469.2 kB / 1.103 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/1.192, allocations: 4.969 kB / 1.103 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001713/1.193, allocations: 0.5405 MB / 1.104 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.977e-05/1.193, allocations: 33.89 kB / 1.104 GB, free: 12.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/1.193, allocations: 6.891 kB / 1.104 GB, free: 12.08 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003011/1.194, allocations: 38.8 kB / 1.104 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000535/1.194, allocations: 86.88 kB / 1.104 GB, free: 12.06 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002313/1.197, allocations: 1.62 MB / 1.105 GB, free: 10.54 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00067/1.197, allocations: 45.97 kB / 1.105 GB, free: 10.53 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.097e-05/1.197, allocations: 13.27 kB / 1.105 GB, free: 10.53 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000951/1.198, allocations: 284.7 kB / 1.106 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007589/1.199, allocations: 246.2 kB / 1.106 GB, free: 10.24 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001092/1.2, allocations: 447.5 kB / 1.106 GB, free: 9.992 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.915e-06/1.2, allocations: 1.062 kB / 1.106 GB, free: 9.992 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001697/1.202, allocations: 0.5212 MB / 1.107 GB, free: 9.77 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 6.343e-05/1.202, allocations: 33.28 kB / 1.107 GB, free: 9.738 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/1.202, allocations: 2.625 kB / 1.107 GB, free: 9.738 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003013/1.202, allocations: 39.89 kB / 1.107 GB, free: 9.727 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000723/1.203, allocations: 90.72 kB / 1.107 GB, free: 9.711 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002993/1.206, allocations: 1.6 MB / 1.109 GB, free: 8.203 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007178/1.207, allocations: 63.23 kB / 1.109 GB, free: 8.172 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.118e-05/1.207, allocations: 13.3 kB / 1.109 GB, free: 8.172 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 (load.count,$PRE.load.count,load.T_start,$PRE.load.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004114/1.207, allocations: 201.7 kB / 1.109 GB, free: 7.977 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/1.207, allocations: 23.92 kB / 1.109 GB, free: 7.965 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002057/1.21, allocations: 476.7 kB / 1.109 GB, free: 7.785 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/1.21, allocations: 2.719 kB / 1.109 GB, free: 7.785 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/1.21, allocations: 0.6719 kB / 1.109 GB, free: 7.785 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003364/1.21, allocations: 136.6 kB / 1.109 GB, free: 7.66 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/1.21, allocations: 11.05 kB / 1.109 GB, free: 7.652 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006091/1.211, allocations: 43.22 kB / 1.109 GB, free: 7.648 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/1.211, allocations: 26.98 kB / 1.11 GB, free: 7.645 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0022/1.213, allocations: 0.6099 MB / 1.11 GB, free: 7.336 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00274/1.216, allocations: 0.8425 MB / 1.111 GB, free: 6.875 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007558/1.217, allocations: 185.2 kB / 1.111 GB, free: 6.82 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004375/1.217, allocations: 180.9 kB / 1.111 GB, free: 6.719 MB / 0.8731 GB Notification: Performance of Backend: time 1.222e-06/1.217, allocations: 0 / 1.111 GB, free: 6.719 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.004819/1.222, allocations: 1.05 MB / 1.112 GB, free: 6.113 MB / 0.8731 GB Notification: Performance of SimCode: time 0.002095/1.224, allocations: 0.9684 MB / 1.113 GB, free: 5.336 MB / 0.8731 GB Notification: Performance of Templates: time 0.0291/1.253, allocations: 7.829 MB / 1.121 GB, free: 4.734 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches