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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008477/0.0008477, allocations: 165.9 kB / 22.45 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8962/0.8962, allocations: 177.1 MB / 202.8 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.763/1.763, allocations: 389 MB / 0.633 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.913e-06/1.913e-06, allocations: 0 / 0.9996 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.309e-05/2.501e-05, allocations: 2.281 kB / 0.9996 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005885/0.00591, allocations: 3.741 MB / 1.003 GB, free: 9.785 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.00271/0.00862, allocations: 1.694 MB / 1.005 GB, free: 8.082 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001707/0.008791, allocations: 11.94 kB / 1.005 GB, free: 8.07 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.000831/0.009622, allocations: 493.9 kB / 1.005 GB, free: 7.586 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0003408/0.009963, allocations: 238.6 kB / 1.006 GB, free: 7.352 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003115/0.01027, allocations: 207.3 kB / 1.006 GB, free: 7.148 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0003655/0.01064, allocations: 490.2 kB / 1.006 GB, free: 6.668 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003847/0.01102, allocations: 297.3 kB / 1.007 GB, free: 6.379 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002129/0.01124, allocations: 275.3 kB / 1.007 GB, free: 6.109 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002827/0.01152, allocations: 195.5 kB / 1.007 GB, free: 5.918 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.296e-05/0.01155, allocations: 28 kB / 1.007 GB, free: 5.891 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002453/0.0118, allocations: 227.3 kB / 1.007 GB, free: 5.668 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.0119, allocations: 135.6 kB / 1.007 GB, free: 5.535 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 8.569e-05/0.01199, allocations: 115.8 kB / 1.008 GB, free: 5.422 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0004041/0.01239, allocations: 0.5179 MB / 1.008 GB, free: 4.902 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.01239, allocations: 0 / 1.008 GB, free: 4.902 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.283e-06/0.0124, allocations: 0 / 1.008 GB, free: 4.902 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.728e-06/0.0124, allocations: 0 / 1.008 GB, free: 4.902 MB / 0.9636 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.0006833/0.01308, allocations: 0.5674 MB / 1.009 GB, free: 4.305 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.01312, allocations: 8.75 kB / 1.009 GB, free: 4.297 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.561e-05/0.01318, allocations: 70.66 kB / 1.009 GB, free: 4.219 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004731/0.01365, allocations: 136.6 kB / 1.009 GB, free: 4.086 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002732/0.01392, allocations: 237.2 kB / 1.009 GB, free: 3.828 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.01394, allocations: 25.03 kB / 1.009 GB, free: 3.801 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.848e-05/0.01397, allocations: 28.36 kB / 1.009 GB, free: 3.773 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004601/0.01443, allocations: 0.5748 MB / 1.01 GB, free: 3.133 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.01444, allocations: 4.188 kB / 1.01 GB, free: 3.129 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.314e-05/0.01447, allocations: 16.12 kB / 1.01 GB, free: 3.113 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.291e-05/0.0145, allocations: 28.64 kB / 1.01 GB, free: 3.086 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003157/0.01481, allocations: 326.3 kB / 1.01 GB, free: 2.77 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001193/0.01601, allocations: 1.575 MB / 1.012 GB, free: 1.109 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000231/0.01624, allocations: 158.7 kB / 1.012 GB, free: 0.9453 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.01639, allocations: 104.7 kB / 1.012 GB, free: 0.8398 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.0164, allocations: 7.984 kB / 1.012 GB, free: 0.832 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.698e-05/0.01642, allocations: 30.56 kB / 1.012 GB, free: 0.793 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=14): time 1.432e-06/0.01642, allocations: 96 / 1.012 GB, free: 0.793 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14): time 0.0003731/0.01679, allocations: 228.9 kB / 1.012 GB, free: 0.5625 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.739e-05/0.01682, allocations: 59.34 kB / 1.012 GB, free: 0.4922 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.017, allocations: 273.8 kB / 1.012 GB, free: 224 kB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.276e-05/0.01701, allocations: 25.7 kB / 1.012 GB, free: 192 kB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.01712, allocations: 220.3 kB / 1.013 GB, free: 15.96 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 2.419e-05/0.01714, allocations: 47.62 kB / 1.013 GB, free: 15.91 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.468e-05/0.0172, allocations: 53.89 kB / 1.013 GB, free: 15.85 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 7.981e-05/0.01728, allocations: 334.8 kB / 1.013 GB, free: 15.52 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.371e-05/0.01734, allocations: 60.44 kB / 1.013 GB, free: 15.46 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.628e-05/0.01744, allocations: 140 kB / 1.013 GB, free: 15.28 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001736/0.01761, allocations: 218.9 kB / 1.013 GB, free: 15.03 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.01761, allocations: 0 / 1.013 GB, free: 15.03 MB / 0.9792 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002611/0.01787, allocations: 272.5 kB / 1.014 GB, free: 14.75 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.01789, allocations: 4 kB / 1.014 GB, free: 14.75 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.01789, allocations: 4 kB / 1.014 GB, free: 14.75 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001184/0.01801, allocations: 24.84 kB / 1.014 GB, free: 14.72 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.01811, allocations: 52.28 kB / 1.014 GB, free: 14.67 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006859/0.0188, allocations: 1.311 MB / 1.015 GB, free: 13.24 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.772e-05/0.01889, allocations: 31.73 kB / 1.015 GB, free: 13.21 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.0189, allocations: 12 kB / 1.015 GB, free: 13.2 MB / 0.9792 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.0001077/0.01901, allocations: 169.7 kB / 1.015 GB, free: 13.02 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.954e-05/0.01904, allocations: 31.95 kB / 1.015 GB, free: 12.99 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.31e-05/0.01906, allocations: 25.77 kB / 1.015 GB, free: 12.97 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.01906, allocations: 4 kB / 1.015 GB, free: 12.96 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.01906, allocations: 0 / 1.015 GB, free: 12.96 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.01907, allocations: 0 / 1.015 GB, free: 12.96 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005293/0.0196, allocations: 0.6047 MB / 1.016 GB, free: 12.29 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.0196, allocations: 0 / 1.016 GB, free: 12.29 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.536e-05/0.01964, allocations: 24.17 kB / 1.016 GB, free: 12.27 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.291e-05/0.0197, allocations: 28.84 kB / 1.016 GB, free: 12.23 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.01971, allocations: 8 kB / 1.016 GB, free: 12.23 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000565/0.02027, allocations: 1.31 MB / 1.017 GB, free: 10.8 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.02027, allocations: 4.031 kB / 1.017 GB, free: 10.8 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002051/0.02048, allocations: 317.4 kB / 1.018 GB, free: 10.45 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 4.924e-05/0.02053, allocations: 43.81 kB / 1.018 GB, free: 10.41 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.02054, allocations: 11.94 kB / 1.018 GB, free: 10.39 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.443e-05/0.02063, allocations: 4 kB / 1.018 GB, free: 10.39 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.433e-05/0.02065, allocations: 27.84 kB / 1.018 GB, free: 10.36 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.663e-06/0.02066, allocations: 7.938 kB / 1.018 GB, free: 10.36 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.0001134/0.02077, allocations: 189.2 kB / 1.018 GB, free: 10.17 MB / 0.9792 GB Notification: Performance of sort global known variables: time 5e-08/0.02077, allocations: 4 kB / 1.018 GB, free: 10.17 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.0002375/0.02101, allocations: 75.89 kB / 1.018 GB, free: 10.09 MB / 0.9792 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.0003897/0.0214, allocations: 0.8469 MB / 1.019 GB, free: 9.199 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.0003001/0.0217, allocations: 265 kB / 1.019 GB, free: 8.93 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.0217, allocations: 4 kB / 1.019 GB, free: 8.926 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.02181, allocations: 170.7 kB / 1.019 GB, free: 8.746 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.02212, allocations: 60.58 kB / 1.019 GB, free: 8.691 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001974/0.02409, allocations: 2.709 MB / 1.022 GB, free: 5.781 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001215/0.02421, allocations: 194.1 kB / 1.022 GB, free: 5.574 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 9.65e-05/0.02431, allocations: 42.27 kB / 1.022 GB, free: 5.535 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.547e-05/0.02439, allocations: 80.47 kB / 1.022 GB, free: 5.457 MB / 0.9792 GB Notification: Performance of SimCode: time 5.91e-07/0.02439, allocations: 0 / 1.022 GB, free: 5.457 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02036/0.04475, allocations: 6.25 MB / 1.028 GB, free: 15.4 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.828/6.873, allocations: 6.688 kB / 1.028 GB, free: 15.4 MB / 0.9948 GB " [Timeout remaining time 293] (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 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) [Timeout 840.0] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.885782576166093]