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.001616/0.001616, allocations: 108.6 kB / 15.73 MB, free: 72 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.002293/0.002292, allocations: 183.1 kB / 16.66 MB, free: 6.602 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.089/3.089, allocations: 472.6 MB / 0.7453 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.84 kB / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3829/0.3842, allocations: 159.9 MB / 1.226 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.005963/0.3902, allocations: 3.863 MB / 1.229 GB, free: 5.324 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003222/0.3935, allocations: 1.78 MB / 1.231 GB, free: 3.535 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003154/0.3938, allocations: 8 kB / 1.231 GB, free: 3.527 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001492/0.3953, allocations: 445.4 kB / 1.232 GB, free: 3.094 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0007527/0.3961, allocations: 250.8 kB / 1.232 GB, free: 2.848 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006987/0.3968, allocations: 251.5 kB / 1.232 GB, free: 2.602 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000587/0.3974, allocations: 0.4945 MB / 1.232 GB, free: 2.105 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006266/0.398, allocations: 352.9 kB / 1.233 GB, free: 1.758 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.3983, allocations: 199.3 kB / 1.233 GB, free: 1.562 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004356/0.3987, allocations: 235.2 kB / 1.233 GB, free: 1.332 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.653e-05/0.3988, allocations: 32 kB / 1.233 GB, free: 1.301 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003452/0.3991, allocations: 191.5 kB / 1.233 GB, free: 1.113 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.3993, allocations: 127.7 kB / 1.234 GB, free: 0.9883 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.3994, allocations: 175.1 kB / 1.234 GB, free: 0.8164 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005655/0.4, allocations: 498 kB / 1.234 GB, free: 336 kB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.4, allocations: 7.938 kB / 1.234 GB, free: 328 kB / 0.9825 GB Notification: Performance of FrontEnd: time 1.242e-06/0.4, allocations: 0 / 1.234 GB, free: 328 kB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.088e-05/0.4001, allocations: 0 / 1.234 GB, free: 328 kB / 0.9825 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.001126/0.4012, allocations: 0.67 MB / 1.235 GB, free: 15.6 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.4012, allocations: 8.031 kB / 1.235 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005542/0.4018, allocations: 84.64 kB / 1.235 GB, free: 15.51 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000478/0.4023, allocations: 303.7 kB / 1.235 GB, free: 15.18 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.041e-05/0.4023, allocations: 25.02 kB / 1.235 GB, free: 15.15 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.895e-05/0.4024, allocations: 28.31 kB / 1.235 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008238/0.4032, allocations: 494 kB / 1.236 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.4032, allocations: 7.938 kB / 1.236 GB, free: 14.6 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.4033, allocations: 8 kB / 1.236 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.834e-05/0.4033, allocations: 36.64 kB / 1.236 GB, free: 14.56 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007214/0.4041, allocations: 374.2 kB / 1.236 GB, free: 14.19 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002305/0.4064, allocations: 2.033 MB / 1.238 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005632/0.407, allocations: 206.8 kB / 1.238 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003629/0.4073, allocations: 160.7 kB / 1.239 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.4074, allocations: 4 kB / 1.239 GB, free: 11.58 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.4074, allocations: 38.5 kB / 1.239 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=18): time 1.663e-06/0.4074, allocations: 0 / 1.239 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18): time 0.001044/0.4085, allocations: 420.6 kB / 1.239 GB, free: 11.1 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.565e-05/0.4085, allocations: 59.39 kB / 1.239 GB, free: 11.03 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003093/0.4088, allocations: 262.7 kB / 1.239 GB, free: 10.77 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.4089, allocations: 25.7 kB / 1.239 GB, free: 10.74 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002066/0.4091, allocations: 220.2 kB / 1.24 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.523e-05/0.4091, allocations: 63.42 kB / 1.24 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.503e-05/0.4092, allocations: 65.92 kB / 1.24 GB, free: 10.38 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.4094, allocations: 334.8 kB / 1.24 GB, free: 10.05 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002462/0.4096, allocations: 97.91 kB / 1.24 GB, free: 9.949 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003248/0.4099, allocations: 207.6 kB / 1.24 GB, free: 9.695 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005346/0.4105, allocations: 315 kB / 1.241 GB, free: 9.34 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.4105, allocations: 4 kB / 1.241 GB, free: 9.336 MB / 0.9981 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007176/0.4112, allocations: 352.5 kB / 1.241 GB, free: 8.984 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.4113, allocations: 4 kB / 1.241 GB, free: 8.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.4113, allocations: 4 kB / 1.241 GB, free: 8.977 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002189/0.4115, allocations: 36.83 kB / 1.241 GB, free: 8.938 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002707/0.4118, allocations: 67.83 kB / 1.241 GB, free: 8.871 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001362/0.4131, allocations: 1.456 MB / 1.242 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002411/0.4134, allocations: 43.72 kB / 1.242 GB, free: 7.234 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.231e-05/0.4134, allocations: 8 kB / 1.242 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003608/0.4138, allocations: 220.6 kB / 1.243 GB, free: 7.008 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003104/0.4141, allocations: 213.1 kB / 1.243 GB, free: 6.742 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005338/0.4147, allocations: 318.8 kB / 1.243 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.805e-06/0.4147, allocations: 0 / 1.243 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007415/0.4154, allocations: 341 kB / 1.244 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.447e-06/0.4154, allocations: 4 kB / 1.244 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.4155, allocations: 8 kB / 1.244 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.059e-06/0.4155, allocations: 4.5 kB / 1.244 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002579/0.4157, allocations: 75.83 kB / 1.244 GB, free: 5.949 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.4157, allocations: 11.98 kB / 1.244 GB, free: 5.938 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002301/0.416, allocations: 31.83 kB / 1.244 GB, free: 5.906 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.684e-05/0.416, allocations: 23.94 kB / 1.244 GB, free: 5.883 MB / 0.9981 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.0001347/0.4162, allocations: 207.1 kB / 1.244 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.334e-05/0.4162, allocations: 23.86 kB / 1.244 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.534e-05/0.4163, allocations: 34.17 kB / 1.244 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.4163, allocations: 4 kB / 1.244 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.4163, allocations: 0 / 1.244 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.4163, allocations: 0 / 1.244 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001272/0.4176, allocations: 0.7499 MB / 1.245 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.4176, allocations: 4 kB / 1.245 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002019/0.4178, allocations: 35.97 kB / 1.245 GB, free: 4.746 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001083/0.4179, allocations: 32.77 kB / 1.245 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.418, allocations: 4 kB / 1.245 GB, free: 4.707 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001101/0.4191, allocations: 1.434 MB / 1.246 GB, free: 3.137 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4191, allocations: 0 / 1.246 GB, free: 3.137 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006059/0.4197, allocations: 363.3 kB / 1.246 GB, free: 2.758 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.4198, allocations: 120.9 kB / 1.247 GB, free: 2.621 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.295e-05/0.4199, allocations: 7.984 kB / 1.247 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.42, allocations: 11.98 kB / 1.247 GB, free: 2.602 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.338e-05/0.4201, allocations: 19.92 kB / 1.247 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.4201, allocations: 11.88 kB / 1.247 GB, free: 2.57 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000173/0.4203, allocations: 190 kB / 1.247 GB, free: 2.383 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4203, allocations: 4 kB / 1.247 GB, free: 2.379 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005704/0.4209, allocations: 139.7 kB / 1.247 GB, free: 2.242 MB / 0.9981 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.0001318/0.421, allocations: 103.2 kB / 1.247 GB, free: 2.129 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001128/0.4222, allocations: 0.4938 MB / 1.248 GB, free: 1.625 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4222, allocations: 0 / 1.248 GB, free: 1.625 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003498/0.4225, allocations: 222.7 kB / 1.248 GB, free: 1.395 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004916/0.423, allocations: 71.97 kB / 1.248 GB, free: 1.328 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009058/0.424, allocations: 0.5446 MB / 1.248 GB, free: 0.7539 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.6439/1.068, allocations: 0.7992 MB / 1.249 GB, free: 26.08 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003473/1.068, allocations: 69.94 kB / 1.249 GB, free: 26.08 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.663e-05/1.068, allocations: 22.09 kB / 1.249 GB, free: 26.07 MB / 0.9981 GB Notification: Performance of SimCode: time 1.363e-06/1.068, allocations: 0.7188 kB / 1.249 GB, free: 26.07 MB / 0.9981 GB Notification: Performance of Templates: time 0.008015/1.076, allocations: 3.578 MB / 1.253 GB, free: 26 MB / 0.9981 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