Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001395/0.001395, allocations: 112.5 kB / 15.73 MB, free: 68 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.001455/0.001455, allocations: 188.1 kB / 16.66 MB, free: 6.582 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.363 MB / 190.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.541/2.541, allocations: 390.2 MB / 0.6648 GB, free: 248 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001217, allocations: 62.77 kB / 0.9508 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3673/0.3685, allocations: 140.4 MB / 1.088 GB, free: 1.543 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.01042/0.379, allocations: 3.85 MB / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.005146/0.3842, allocations: 1.772 MB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005849/0.3848, allocations: 7.938 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00233/0.3872, allocations: 458.8 kB / 1.094 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001326/0.3886, allocations: 242.8 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001292/0.3899, allocations: 250.3 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001216/0.3911, allocations: 0.4945 MB / 1.095 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001049/0.3922, allocations: 364.8 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004698/0.3927, allocations: 199.3 kB / 1.095 GB, free: 9.91 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007144/0.3934, allocations: 235.2 kB / 1.096 GB, free: 9.68 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001143/0.3936, allocations: 28 kB / 1.096 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006377/0.3942, allocations: 191.6 kB / 1.096 GB, free: 9.465 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002624/0.3945, allocations: 131.6 kB / 1.096 GB, free: 9.336 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003842/0.3949, allocations: 175.1 kB / 1.096 GB, free: 9.164 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001156/0.3961, allocations: 0.4903 MB / 1.097 GB, free: 8.672 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3961, allocations: 0 / 1.097 GB, free: 8.672 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.517e-06/0.3961, allocations: 0 / 1.097 GB, free: 8.672 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.57e-05/0.3962, allocations: 0 / 1.097 GB, free: 8.672 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.002151/0.3983, allocations: 0.6757 MB / 1.097 GB, free: 7.949 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.3984, allocations: 12.03 kB / 1.097 GB, free: 7.938 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00112/0.3995, allocations: 84.64 kB / 1.097 GB, free: 7.855 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007404/0.4003, allocations: 303.5 kB / 1.098 GB, free: 7.52 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.729e-05/0.4004, allocations: 21.03 kB / 1.098 GB, free: 7.5 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.233e-05/0.4005, allocations: 32.38 kB / 1.098 GB, free: 7.469 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.4019, allocations: 493.9 kB / 1.098 GB, free: 6.953 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/0.402, allocations: 0 / 1.098 GB, free: 6.953 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.176e-05/0.402, allocations: 16 kB / 1.098 GB, free: 6.938 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001014/0.4022, allocations: 40.64 kB / 1.098 GB, free: 6.898 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.4036, allocations: 366.2 kB / 1.098 GB, free: 6.543 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003798/0.4074, allocations: 2.037 MB / 1.1 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000998/0.4084, allocations: 214.7 kB / 1.101 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007042/0.4091, allocations: 150.2 kB / 1.101 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.269e-05/0.4092, allocations: 8 kB / 1.101 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.386e-05/0.4093, allocations: 30.56 kB / 1.101 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=18): time 2.374e-06/0.4093, allocations: 3.938 kB / 1.101 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18): time 0.001883/0.4112, allocations: 425 kB / 1.101 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/0.4112, allocations: 55.39 kB / 1.101 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004663/0.4117, allocations: 266.7 kB / 1.102 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.025e-05/0.4118, allocations: 29.7 kB / 1.102 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002122/0.412, allocations: 212.2 kB / 1.102 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.791e-05/0.4121, allocations: 67.42 kB / 1.102 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001691/0.4123, allocations: 65.92 kB / 1.102 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002456/0.4125, allocations: 334.7 kB / 1.102 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004611/0.413, allocations: 101.9 kB / 1.102 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006686/0.4137, allocations: 203.6 kB / 1.103 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/0.4148, allocations: 313.3 kB / 1.103 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/0.4148, allocations: 4 kB / 1.103 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001381/0.4162, allocations: 348 kB / 1.103 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.4162, allocations: 11.94 kB / 1.103 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.945e-05/0.4163, allocations: 7.984 kB / 1.103 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004117/0.4167, allocations: 37.31 kB / 1.103 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005205/0.4172, allocations: 63.89 kB / 1.103 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002076/0.4193, allocations: 1.441 MB / 1.105 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005092/0.4199, allocations: 39.86 kB / 1.105 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.96e-05/0.4199, allocations: 16 kB / 1.105 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006329/0.4206, allocations: 216.6 kB / 1.105 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005708/0.4212, allocations: 213.5 kB / 1.105 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001014/0.4222, allocations: 318.1 kB / 1.105 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.038e-06/0.4222, allocations: 4 kB / 1.105 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.001289/0.4235, allocations: 337.3 kB / 1.106 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.4235, allocations: 8 kB / 1.106 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.4236, allocations: 4 kB / 1.106 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.4236, allocations: 8 kB / 1.106 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005185/0.4241, allocations: 67.89 kB / 1.106 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.4242, allocations: 7.984 kB / 1.106 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004814/0.4246, allocations: 39.83 kB / 1.106 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.587e-05/0.4247, allocations: 20.16 kB / 1.106 GB, free: 14.23 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002214/0.425, allocations: 204 kB / 1.106 GB, free: 14.03 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.4251, allocations: 23.86 kB / 1.106 GB, free: 14 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001053/0.4252, allocations: 34.17 kB / 1.106 GB, free: 13.97 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.4252, allocations: 11.88 kB / 1.106 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.4252, allocations: 0 / 1.106 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.4252, allocations: 0 / 1.106 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002197/0.4274, allocations: 0.7519 MB / 1.107 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.4275, allocations: 0 / 1.107 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003649/0.4278, allocations: 43.91 kB / 1.107 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002006/0.4281, allocations: 32.89 kB / 1.107 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.4281, allocations: 0 / 1.107 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001862/0.43, allocations: 1.426 MB / 1.108 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.43, allocations: 0 / 1.108 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001191/0.4312, allocations: 369.7 kB / 1.109 GB, free: 11.1 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001936/0.4314, allocations: 116.9 kB / 1.109 GB, free: 10.97 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.468e-05/0.4315, allocations: 11.98 kB / 1.109 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003498/0.4319, allocations: 11.98 kB / 1.109 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.878e-05/0.432, allocations: 19.98 kB / 1.109 GB, free: 10.93 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.744e-05/0.432, allocations: 7.938 kB / 1.109 GB, free: 10.92 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000307/0.4323, allocations: 186 kB / 1.109 GB, free: 10.73 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.6e-07/0.4324, allocations: 0 / 1.109 GB, free: 10.73 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001142/0.4335, allocations: 139.7 kB / 1.109 GB, free: 10.6 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001714/0.4337, allocations: 107.7 kB / 1.109 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00197/0.4357, allocations: 0.4919 MB / 1.11 GB, free: 9.977 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.4357, allocations: 4 kB / 1.11 GB, free: 9.973 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007187/0.4364, allocations: 216.1 kB / 1.11 GB, free: 9.75 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009395/0.4374, allocations: 71.77 kB / 1.11 GB, free: 9.684 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.4391, allocations: 0.5482 MB / 1.111 GB, free: 9.102 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006419/0.4398, allocations: 0.8035 MB / 1.111 GB, free: 8.27 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0004367/0.4402, allocations: 74.2 kB / 1.111 GB, free: 8.199 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.4403, allocations: 23.38 kB / 1.112 GB, free: 8.176 MB / 0.8731 GB Notification: Performance of SimCode: time 8.42e-07/0.4404, allocations: 0 / 1.112 GB, free: 8.176 MB / 0.8731 GB Notification: Performance of Templates: time 0.015/0.4554, allocations: 3.582 MB / 1.115 GB, free: 4.637 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches