Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006985/0.006985, allocations: 102.1 kB / 15.73 MB, free: 6.012 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.001687/0.001686, allocations: 196.6 kB / 16.67 MB, free: 5.938 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 4.047 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.574/2.574, allocations: 461.9 MB / 0.7348 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001362, allocations: 71.89 kB / 1.054 GB, free: 7.695 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.3126, allocations: 157.4 MB / 1.207 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005517/0.3182, allocations: 3.838 MB / 1.211 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002763/0.321, allocations: 1.726 MB / 1.213 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002644/0.3212, allocations: 11.94 kB / 1.213 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001431/0.3227, allocations: 496.8 kB / 1.213 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0005805/0.3233, allocations: 218.9 kB / 1.213 GB, free: 3.891 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005849/0.3239, allocations: 219.4 kB / 1.214 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0006134/0.3245, allocations: 478.4 kB / 1.214 GB, free: 3.207 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005738/0.3251, allocations: 369.4 kB / 1.214 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002967/0.3254, allocations: 191.4 kB / 1.215 GB, free: 2.66 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004366/0.3258, allocations: 219.1 kB / 1.215 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.972e-05/0.3259, allocations: 32 kB / 1.215 GB, free: 2.414 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000435/0.3263, allocations: 239.5 kB / 1.215 GB, free: 2.18 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.3265, allocations: 119.6 kB / 1.215 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001932/0.3267, allocations: 179.1 kB / 1.215 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0006585/0.3274, allocations: 0.4985 MB / 1.216 GB, free: 1.387 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.3274, allocations: 3.938 kB / 1.216 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3274, allocations: 0 / 1.216 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.6e-05/0.3274, allocations: 0 / 1.216 GB, free: 1.383 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001101/0.3285, allocations: 0.6277 MB / 1.216 GB, free: 0.7031 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.3286, allocations: 8.625 kB / 1.216 GB, free: 0.6953 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.266e-05/0.3286, allocations: 78.72 kB / 1.217 GB, free: 0.6094 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009121/0.3296, allocations: 132.3 kB / 1.217 GB, free: 492 kB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.33, allocations: 295.6 kB / 1.217 GB, free: 156 kB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.33, allocations: 21.03 kB / 1.217 GB, free: 136 kB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.564e-05/0.3301, allocations: 32.36 kB / 1.217 GB, free: 104 kB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006377/0.3307, allocations: 459.7 kB / 1.217 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.3307, allocations: 7.938 kB / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/0.3308, allocations: 15.98 kB / 1.217 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.965e-05/0.3308, allocations: 28.55 kB / 1.217 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004586/0.3313, allocations: 321.9 kB / 1.218 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002075/0.3334, allocations: 2.173 MB / 1.22 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003529/0.3337, allocations: 263.7 kB / 1.22 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002202/0.334, allocations: 108.8 kB / 1.22 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.12e-05/0.334, allocations: 0 / 1.22 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.334, allocations: 34.56 kB / 1.22 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 9.81e-07/0.334, allocations: 0 / 1.22 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0005707/0.3346, allocations: 299.9 kB / 1.221 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.3346, allocations: 55.41 kB / 1.221 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002605/0.3349, allocations: 266.6 kB / 1.221 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.3349, allocations: 29.64 kB / 1.221 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.3351, allocations: 215.7 kB / 1.221 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.575e-05/0.3351, allocations: 43.36 kB / 1.221 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.321e-05/0.3352, allocations: 53.84 kB / 1.221 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.3353, allocations: 334.8 kB / 1.222 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.459e-05/0.3354, allocations: 56.44 kB / 1.222 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.3356, allocations: 152.2 kB / 1.222 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002552/0.3358, allocations: 225.5 kB / 1.222 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.3359, allocations: 0 / 1.222 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004318/0.3363, allocations: 258.3 kB / 1.222 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.3363, allocations: 8.031 kB / 1.222 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.3363, allocations: 7.984 kB / 1.222 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001624/0.3365, allocations: 24.84 kB / 1.222 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001778/0.3367, allocations: 47.92 kB / 1.222 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001113/0.3378, allocations: 1.414 MB / 1.224 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001711/0.338, allocations: 27.69 kB / 1.224 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.338, allocations: 12 kB / 1.224 GB, free: 8.637 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001699/0.3382, allocations: 177.8 kB / 1.224 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.708e-05/0.3383, allocations: 23.78 kB / 1.224 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.834e-05/0.3383, allocations: 33.77 kB / 1.224 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3383, allocations: 4 kB / 1.224 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.3383, allocations: 0 / 1.224 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.3383, allocations: 3.984 kB / 1.224 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000854/0.3392, allocations: 0.6986 MB / 1.225 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.3392, allocations: 0 / 1.225 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.191e-05/0.3393, allocations: 27.92 kB / 1.225 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.789e-05/0.3394, allocations: 32.97 kB / 1.225 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.3394, allocations: 4 kB / 1.225 GB, free: 7.535 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009399/0.3404, allocations: 1.418 MB / 1.226 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.3404, allocations: 4.031 kB / 1.226 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003134/0.3407, allocations: 309.2 kB / 1.226 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.3408, allocations: 120.7 kB / 1.226 GB, free: 5.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.981e-05/0.3409, allocations: 4 kB / 1.226 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.341, allocations: 8 kB / 1.226 GB, free: 5.488 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.057e-05/0.3411, allocations: 20.02 kB / 1.226 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.3411, allocations: 11.94 kB / 1.226 GB, free: 5.457 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001765/0.3413, allocations: 197.9 kB / 1.227 GB, free: 5.262 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3413, allocations: 0 / 1.227 GB, free: 5.262 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003942/0.3417, allocations: 75.75 kB / 1.227 GB, free: 5.188 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005663/0.3422, allocations: 0.8494 MB / 1.228 GB, free: 4.289 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004433/0.3427, allocations: 270.5 kB / 1.228 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.3427, allocations: 4 kB / 1.228 GB, free: 4.008 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001951/0.3429, allocations: 183.7 kB / 1.228 GB, free: 3.816 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004699/0.3434, allocations: 67.11 kB / 1.228 GB, free: 3.754 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003106/0.3465, allocations: 2.703 MB / 1.231 GB, free: 0.8594 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003929/0.3469, allocations: 0.7909 MB / 1.231 GB, free: 44 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001428/0.3471, allocations: 42.27 kB / 1.232 GB, free: 4 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.3472, allocations: 79.48 kB / 1.232 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of SimCode: time 3.1e-07/0.3472, allocations: 0 / 1.232 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02699/0.3742, allocations: 5.463 MB / 1.237 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.262/9.636, allocations: 20.64 kB / 1.237 GB, free: 10.59 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches