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.001834/0.001834, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002816/0.002816, allocations: 194 kB / 16.25 MB, free: 6.637 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.92/1.92, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.749/2.749, allocations: 461.9 MB / 0.7343 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 61.92 kB / 0.8987 GB, free: 37.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2925, allocations: 157.4 MB / 1.052 GB, free: 8.719 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004956/0.2975, allocations: 3.87 MB / 1.056 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002491/0.3, allocations: 1.718 MB / 1.058 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001718/0.3002, allocations: 8 kB / 1.058 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.00124/0.3015, allocations: 473.5 kB / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004522/0.3019, allocations: 207.1 kB / 1.059 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005402/0.3025, allocations: 191.6 kB / 1.059 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005186/0.303, allocations: 482.4 kB / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006231/0.3037, allocations: 405.3 kB / 1.06 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002406/0.3039, allocations: 195.4 kB / 1.06 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003699/0.3043, allocations: 227.1 kB / 1.06 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.938e-05/0.3043, allocations: 35.94 kB / 1.06 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004091/0.3048, allocations: 243.5 kB / 1.06 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001488/0.3049, allocations: 123.6 kB / 1.06 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001591/0.3051, allocations: 171.1 kB / 1.061 GB, free: 408 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005631/0.3056, allocations: 0.5141 MB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.3057, allocations: 0 / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.655e-06/0.3057, allocations: 0 / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.089e-05/0.3057, allocations: 3.938 kB / 1.061 GB, free: 15.88 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0009828/0.3067, allocations: 0.6354 MB / 1.062 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.3067, allocations: 8.625 kB / 1.062 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.309e-05/0.3068, allocations: 66.72 kB / 1.062 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009197/0.3077, allocations: 136.4 kB / 1.062 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003312/0.3081, allocations: 279.7 kB / 1.062 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.365e-05/0.3081, allocations: 25.02 kB / 1.062 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.761e-05/0.3081, allocations: 28.38 kB / 1.062 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000659/0.3088, allocations: 463.7 kB / 1.063 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.3088, allocations: 3.938 kB / 1.063 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.271e-05/0.3089, allocations: 16 kB / 1.063 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.444e-05/0.3089, allocations: 32.55 kB / 1.063 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004467/0.3094, allocations: 317.9 kB / 1.063 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002033/0.3114, allocations: 2.189 MB / 1.065 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003308/0.3118, allocations: 251.8 kB / 1.065 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002789/0.3121, allocations: 120.8 kB / 1.065 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.283e-05/0.3121, allocations: 4 kB / 1.065 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.997e-05/0.3121, allocations: 30.56 kB / 1.065 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.382e-06/0.3121, allocations: 0 / 1.065 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0005698/0.3127, allocations: 307.5 kB / 1.066 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/0.3127, allocations: 51.41 kB / 1.066 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002623/0.313, allocations: 266.6 kB / 1.066 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.313, allocations: 29.64 kB / 1.066 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.3132, allocations: 203.8 kB / 1.066 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.627e-05/0.3132, allocations: 55.28 kB / 1.066 GB, free: 9.973 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.861e-05/0.3133, allocations: 45.86 kB / 1.066 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001619/0.3135, allocations: 334.8 kB / 1.067 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.401e-05/0.3136, allocations: 60.44 kB / 1.067 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.3137, allocations: 148.7 kB / 1.067 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002372/0.314, allocations: 217.4 kB / 1.067 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.314, allocations: 96 / 1.067 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003849/0.3144, allocations: 273.9 kB / 1.067 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.3144, allocations: 4 kB / 1.067 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.3144, allocations: 4 kB / 1.067 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001361/0.3145, allocations: 28.84 kB / 1.067 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/0.3147, allocations: 47.92 kB / 1.067 GB, free: 8.727 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/0.3158, allocations: 1.426 MB / 1.069 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001545/0.316, allocations: 31.72 kB / 1.069 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.545e-05/0.316, allocations: 8 kB / 1.069 GB, free: 7.121 MB / 0.8262 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.0002177/0.3162, allocations: 173.6 kB / 1.069 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.615e-05/0.3163, allocations: 23.72 kB / 1.069 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.61e-05/0.3163, allocations: 25.83 kB / 1.069 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3164, allocations: 4 kB / 1.069 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.3164, allocations: 0 / 1.069 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3164, allocations: 4.062 kB / 1.069 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009306/0.3173, allocations: 0.6948 MB / 1.07 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3173, allocations: 4.031 kB / 1.07 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.482e-05/0.3174, allocations: 27.92 kB / 1.07 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.725e-05/0.3175, allocations: 28.78 kB / 1.07 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.3175, allocations: 12.05 kB / 1.07 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008717/0.3184, allocations: 1.411 MB / 1.071 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3184, allocations: 3.984 kB / 1.071 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002997/0.3187, allocations: 317.2 kB / 1.072 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.493e-05/0.3188, allocations: 120.8 kB / 1.072 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.822e-05/0.3189, allocations: 4 kB / 1.072 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.319, allocations: 15.98 kB / 1.072 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.495e-05/0.319, allocations: 15.86 kB / 1.072 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.3191, allocations: 12 kB / 1.072 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001601/0.3192, allocations: 190 kB / 1.072 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3192, allocations: 0 / 1.072 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003589/0.3196, allocations: 75.84 kB / 1.072 GB, free: 3.688 MB / 0.8262 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.0007309/0.3203, allocations: 0.8609 MB / 1.073 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004093/0.3208, allocations: 278.9 kB / 1.073 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3208, allocations: 8.25 kB / 1.073 GB, free: 2.484 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001899/0.321, allocations: 178.5 kB / 1.073 GB, free: 2.297 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004304/0.3214, allocations: 60.42 kB / 1.073 GB, free: 2.242 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002989/0.3244, allocations: 2.817 MB / 1.076 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003347/0.3248, allocations: 0.7985 MB / 1.077 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001458/0.3249, allocations: 42.27 kB / 1.077 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.325, allocations: 83.41 kB / 1.077 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of SimCode: time 1.452e-06/0.325, allocations: 0 / 1.077 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 7.5/7.825, allocations: 5.219 MB / 1.082 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003428/7.826, allocations: 228.1 kB / 1.082 GB, free: 8.988 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.366/12.19, allocations: 0 / 1.082 GB, free: 8.988 MB / 0.8419 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