Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_latest_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_latest_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.001553/0.001554, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002031/0.00203, allocations: 197.1 kB / 16.14 MB, free: 6.711 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.472/1.472, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.856/2.856, allocations: 472.6 MB / 0.7447 GB, free: 4.93 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 61.75 kB / 0.9114 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3596, allocations: 159.9 MB / 1.068 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.005677/0.3653, allocations: 3.901 MB / 1.071 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002648/0.368, allocations: 1.765 MB / 1.073 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.3681, allocations: 11.94 kB / 1.073 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001206/0.3694, allocations: 422.6 kB / 1.073 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004988/0.3699, allocations: 231 kB / 1.074 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005194/0.3704, allocations: 227.2 kB / 1.074 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006176/0.371, allocations: 0.7012 MB / 1.075 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003933/0.3714, allocations: 251.9 kB / 1.075 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.3716, allocations: 167.4 kB / 1.075 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003365/0.372, allocations: 247 kB / 1.075 GB, free: 2.953 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.67e-05/0.372, allocations: 20 kB / 1.075 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000358/0.3724, allocations: 227.5 kB / 1.075 GB, free: 2.711 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.3725, allocations: 115.7 kB / 1.076 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001752/0.3727, allocations: 175.1 kB / 1.076 GB, free: 2.426 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004906/0.3732, allocations: 498.5 kB / 1.076 GB, free: 1.938 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3732, allocations: 8 kB / 1.076 GB, free: 1.93 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.32e-07/0.3732, allocations: 0 / 1.076 GB, free: 1.93 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.3732, allocations: 0 / 1.076 GB, free: 1.93 MB / 0.8262 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.001117/0.3743, allocations: 0.6549 MB / 1.077 GB, free: 1.227 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.3744, allocations: 8.031 kB / 1.077 GB, free: 1.219 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005372/0.3749, allocations: 88.41 kB / 1.077 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003568/0.3753, allocations: 293.4 kB / 1.077 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.3753, allocations: 24.97 kB / 1.077 GB, free: 0.7812 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.621e-05/0.3754, allocations: 28.38 kB / 1.077 GB, free: 0.7539 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007904/0.3762, allocations: 490 kB / 1.078 GB, free: 252 kB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.3762, allocations: 3.938 kB / 1.078 GB, free: 248 kB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/0.3762, allocations: 12 kB / 1.078 GB, free: 236 kB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.013e-05/0.3763, allocations: 40.62 kB / 1.078 GB, free: 196 kB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007507/0.3771, allocations: 366.2 kB / 1.078 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002108/0.3792, allocations: 2.041 MB / 1.08 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005524/0.3797, allocations: 214.5 kB / 1.08 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003777/0.3801, allocations: 156.8 kB / 1.081 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.3802, allocations: 7.938 kB / 1.081 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.3802, allocations: 38.5 kB / 1.081 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 2.134e-06/0.3802, allocations: 0 / 1.081 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18): time 0.001081/0.3813, allocations: 420.5 kB / 1.081 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.3813, allocations: 55.41 kB / 1.081 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00025/0.3816, allocations: 262.7 kB / 1.081 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.395e-05/0.3816, allocations: 25.7 kB / 1.081 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.3818, allocations: 219.6 kB / 1.081 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.122e-05/0.3818, allocations: 67.08 kB / 1.082 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.203e-05/0.3819, allocations: 61.89 kB / 1.082 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.3821, allocations: 334.8 kB / 1.082 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002451/0.3823, allocations: 89.92 kB / 1.082 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003101/0.3826, allocations: 215.6 kB / 1.082 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005455/0.3832, allocations: 315.8 kB / 1.083 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3832, allocations: 4 kB / 1.083 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007554/0.384, allocations: 355.5 kB / 1.083 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.384, allocations: 11.94 kB / 1.083 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.384, allocations: 4 kB / 1.083 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002077/0.3842, allocations: 29.06 kB / 1.083 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002724/0.3845, allocations: 75.83 kB / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001199/0.3857, allocations: 1.331 MB / 1.084 GB, free: 9.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002555/0.386, allocations: 43.58 kB / 1.084 GB, free: 8.977 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.386, allocations: 19.97 kB / 1.084 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003352/0.3864, allocations: 212.6 kB / 1.085 GB, free: 8.746 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003116/0.3867, allocations: 217.1 kB / 1.085 GB, free: 8.477 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005346/0.3872, allocations: 319.1 kB / 1.085 GB, free: 8.109 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.904e-06/0.3872, allocations: 0 / 1.085 GB, free: 8.109 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006635/0.3879, allocations: 332.9 kB / 1.085 GB, free: 7.777 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/0.3879, allocations: 8 kB / 1.085 GB, free: 7.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.3879, allocations: 8.438 kB / 1.085 GB, free: 7.762 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.494e-06/0.388, allocations: 8 kB / 1.085 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002689/0.3882, allocations: 75.83 kB / 1.085 GB, free: 7.68 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.912e-06/0.3882, allocations: 4 kB / 1.085 GB, free: 7.676 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/0.3885, allocations: 31.83 kB / 1.086 GB, free: 7.645 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.3885, allocations: 19.98 kB / 1.086 GB, free: 7.625 MB / 0.8419 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.0001222/0.3886, allocations: 192.2 kB / 1.086 GB, free: 7.43 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.11e-05/0.3887, allocations: 35.59 kB / 1.086 GB, free: 7.395 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.245e-05/0.3888, allocations: 34.17 kB / 1.086 GB, free: 7.359 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.3888, allocations: 4 kB / 1.086 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.3888, allocations: 0 / 1.086 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3888, allocations: 0 / 1.086 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.39, allocations: 0.7554 MB / 1.087 GB, free: 6.523 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.39, allocations: 4 kB / 1.087 GB, free: 6.52 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.3902, allocations: 35.97 kB / 1.087 GB, free: 6.484 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001086/0.3903, allocations: 36.72 kB / 1.087 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.554e-05/0.3903, allocations: 4.062 kB / 1.087 GB, free: 6.441 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000984/0.3913, allocations: 1.323 MB / 1.088 GB, free: 4.984 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3913, allocations: 3.938 kB / 1.088 GB, free: 4.98 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006318/0.392, allocations: 361.7 kB / 1.088 GB, free: 4.602 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.3921, allocations: 116.7 kB / 1.088 GB, free: 4.469 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/0.3921, allocations: 8 kB / 1.088 GB, free: 4.461 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001866/0.3923, allocations: 15.97 kB / 1.088 GB, free: 4.445 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.57e-05/0.3924, allocations: 19.92 kB / 1.088 GB, free: 4.426 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.3924, allocations: 4 kB / 1.088 GB, free: 4.422 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001747/0.3926, allocations: 186 kB / 1.089 GB, free: 4.242 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3926, allocations: 0 / 1.089 GB, free: 4.242 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005691/0.3932, allocations: 147.5 kB / 1.089 GB, free: 4.098 MB / 0.8419 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.0001219/0.3933, allocations: 99.25 kB / 1.089 GB, free: 3.988 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001067/0.3944, allocations: 499.3 kB / 1.089 GB, free: 3.492 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3944, allocations: 0 / 1.089 GB, free: 3.492 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000357/0.3948, allocations: 216 kB / 1.089 GB, free: 3.27 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004973/0.3953, allocations: 60.45 kB / 1.09 GB, free: 3.211 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009729/0.3962, allocations: 0.6703 MB / 1.09 GB, free: 2.508 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004044/0.3967, allocations: 0.7996 MB / 1.091 GB, free: 1.68 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002361/0.3969, allocations: 74.34 kB / 1.091 GB, free: 1.609 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.903e-05/0.397, allocations: 19.44 kB / 1.091 GB, free: 1.59 MB / 0.8419 GB Notification: Performance of SimCode: time 4.01e-07/0.397, allocations: 0 / 1.091 GB, free: 1.59 MB / 0.8419 GB Notification: Performance of Templates: time 0.00715/0.4041, allocations: 3.242 MB / 1.094 GB, free: 14.38 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches