Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.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_10_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_10_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.001432/0.001432, allocations: 111.1 kB / 16.41 MB, free: 6.387 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.001112/0.001112, allocations: 187.7 kB / 17.34 MB, free: 5.84 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.409/1.409, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.66/2.66, allocations: 437 MB / 0.7112 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 67.89 kB / 1.019 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.052/1.054, allocations: 151.6 MB / 1.167 GB, free: 3.828 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.005733/1.059, allocations: 3.019 MB / 1.17 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.003508/1.063, allocations: 1.902 MB / 1.172 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002827/1.063, allocations: 4 kB / 1.172 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0008984/1.064, allocations: 232.4 kB / 1.172 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0006683/1.065, allocations: 223 kB / 1.173 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007242/1.066, allocations: 251.3 kB / 1.173 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004949/1.066, allocations: 390.8 kB / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004093/1.067, allocations: 204.9 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002603/1.067, allocations: 167.4 kB / 1.174 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003357/1.067, allocations: 187.3 kB / 1.174 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 4.484e-05/1.067, allocations: 28 kB / 1.174 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005046/1.068, allocations: 295.5 kB / 1.174 GB, free: 12.94 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001068/1.068, allocations: 87.78 kB / 1.174 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001564/1.068, allocations: 147.2 kB / 1.174 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0006505/1.069, allocations: 494.8 kB / 1.175 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/1.069, allocations: 0 / 1.175 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.412e-06/1.069, allocations: 3.938 kB / 1.175 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.156e-06/1.069, allocations: 0 / 1.175 GB, free: 12.23 MB / 0.9044 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.001261/1.07, allocations: 0.6559 MB / 1.175 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/1.07, allocations: 11.98 kB / 1.175 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000937/1.071, allocations: 120.6 kB / 1.175 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003654/1.071, allocations: 281.4 kB / 1.176 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.477e-05/1.071, allocations: 20.8 kB / 1.176 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.603e-05/1.071, allocations: 24.38 kB / 1.176 GB, free: 11.03 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008251/1.072, allocations: 422.8 kB / 1.176 GB, free: 10.59 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/1.072, allocations: 4 kB / 1.176 GB, free: 10.59 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.663e-05/1.072, allocations: 12 kB / 1.176 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.575e-05/1.072, allocations: 20.36 kB / 1.176 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009437/1.073, allocations: 408.8 kB / 1.177 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001864/1.075, allocations: 1.627 MB / 1.178 GB, free: 8.398 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/1.076, allocations: 489.4 kB / 1.179 GB, free: 7.902 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004534/1.077, allocations: 197.6 kB / 1.179 GB, free: 7.703 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001655/1.077, allocations: 89.09 kB / 1.179 GB, free: 7.598 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005911/1.078, allocations: 270.5 kB / 1.179 GB, free: 7.312 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=27): time 1.623e-06/1.078, allocations: 0 / 1.179 GB, free: 7.312 MB / 0.9044 GB Notification: Performance of matching and sorting (n=28): time 0.002033/1.08, allocations: 0.7599 MB / 1.18 GB, free: 6.523 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/1.08, allocations: 81.11 kB / 1.18 GB, free: 6.426 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002206/1.08, allocations: 228.9 kB / 1.18 GB, free: 6.195 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.503e-05/1.08, allocations: 33.7 kB / 1.18 GB, free: 6.156 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.000114/1.08, allocations: 172.8 kB / 1.18 GB, free: 5.98 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 8.121e-05/1.08, allocations: 99.16 kB / 1.181 GB, free: 5.883 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/1.08, allocations: 65.69 kB / 1.181 GB, free: 5.812 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001251/1.081, allocations: 334.8 kB / 1.181 GB, free: 5.477 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004557/1.081, allocations: 177 kB / 1.181 GB, free: 5.301 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004779/1.082, allocations: 253.3 kB / 1.181 GB, free: 5.023 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009272/1.082, allocations: 470.4 kB / 1.182 GB, free: 4.527 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/1.082, allocations: 0 / 1.182 GB, free: 4.527 MB / 0.9044 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001228/1.084, allocations: 0.5475 MB / 1.182 GB, free: 3.965 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.033e-05/1.084, allocations: 37.98 kB / 1.182 GB, free: 3.922 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/1.084, allocations: 3.984 kB / 1.182 GB, free: 3.918 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002444/1.084, allocations: 36.83 kB / 1.182 GB, free: 3.879 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004272/1.084, allocations: 91.8 kB / 1.182 GB, free: 3.789 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001461/1.086, allocations: 1.608 MB / 1.184 GB, free: 2.039 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003494/1.086, allocations: 47.88 kB / 1.184 GB, free: 1.992 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.22e-05/1.086, allocations: 16.06 kB / 1.184 GB, free: 1.977 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005437/1.087, allocations: 288 kB / 1.184 GB, free: 1.691 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004507/1.087, allocations: 246 kB / 1.185 GB, free: 1.418 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000859/1.088, allocations: 445.2 kB / 1.185 GB, free: 0.9453 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.116e-06/1.088, allocations: 4 kB / 1.185 GB, free: 0.9414 MB / 0.9044 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001162/1.089, allocations: 0.5229 MB / 1.186 GB, free: 408 kB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.861e-05/1.089, allocations: 33.7 kB / 1.186 GB, free: 368 kB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.935e-06/1.089, allocations: 64 / 1.186 GB, free: 368 kB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001453/1.09, allocations: 49 kB / 1.186 GB, free: 316 kB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003864/1.09, allocations: 92.14 kB / 1.186 GB, free: 224 kB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001359/1.091, allocations: 1.607 MB / 1.187 GB, free: 14.46 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003294/1.092, allocations: 47.78 kB / 1.187 GB, free: 14.42 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.141e-05/1.092, allocations: 16 kB / 1.187 GB, free: 14.4 MB / 0.92 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.0001803/1.092, allocations: 200.8 kB / 1.188 GB, free: 14.2 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.041e-05/1.092, allocations: 27.92 kB / 1.188 GB, free: 14.17 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001121/1.093, allocations: 481.2 kB / 1.188 GB, free: 13.7 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/1.093, allocations: 7.969 kB / 1.188 GB, free: 13.69 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/1.093, allocations: 0 / 1.188 GB, free: 13.69 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001511/1.093, allocations: 132.9 kB / 1.188 GB, free: 13.54 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.891e-05/1.093, allocations: 11.95 kB / 1.188 GB, free: 13.53 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003346/1.094, allocations: 47.86 kB / 1.188 GB, free: 13.48 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/1.094, allocations: 27.97 kB / 1.188 GB, free: 13.45 MB / 0.92 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001263/1.095, allocations: 0.6138 MB / 1.189 GB, free: 12.83 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001395/1.096, allocations: 0.8458 MB / 1.19 GB, free: 11.96 MB / 0.92 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004035/1.097, allocations: 175.9 kB / 1.19 GB, free: 11.79 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.000217/1.097, allocations: 180.5 kB / 1.19 GB, free: 11.62 MB / 0.92 GB Notification: Performance of Backend: time 8.51e-07/1.097, allocations: 0 / 1.19 GB, free: 11.62 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002563/1.1, allocations: 1.054 MB / 1.191 GB, free: 10.5 MB / 0.92 GB Notification: Performance of SimCode: time 0.001323/1.101, allocations: 0.9743 MB / 1.192 GB, free: 9.48 MB / 0.92 GB Notification: Performance of Templates: time 0.01569/1.117, allocations: 7.832 MB / 1.2 GB, free: 1.668 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches