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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: "" <> 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.001229/0.001229, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001197/0.001197, allocations: 189.4 kB / 16.13 MB, free: 6.645 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.244/1.244, allocations: 222.9 MB / 239.8 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.49/2.49, allocations: 461.9 MB / 0.7342 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 69.45 kB / 0.8985 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2492, allocations: 157.4 MB / 1.052 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005066/0.2543, allocations: 3.87 MB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002523/0.2568, allocations: 1.741 MB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002243/0.2571, allocations: 8 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001245/0.2583, allocations: 481.3 kB / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006723/0.259, allocations: 203.1 kB / 1.058 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005031/0.2595, allocations: 191.6 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006004/0.2601, allocations: 0.666 MB / 1.059 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003503/0.2605, allocations: 237.5 kB / 1.059 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002224/0.2607, allocations: 167.4 kB / 1.06 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003623/0.2611, allocations: 227.1 kB / 1.06 GB, free: 460 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.841e-05/0.2612, allocations: 20 kB / 1.06 GB, free: 440 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004437/0.2616, allocations: 303.4 kB / 1.06 GB, free: 136 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.2617, allocations: 123.6 kB / 1.06 GB, free: 12 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.2619, allocations: 155.3 kB / 1.06 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005322/0.2625, allocations: 0.5099 MB / 1.061 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.2625, allocations: 0 / 1.061 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.02e-07/0.2625, allocations: 0 / 1.061 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.065e-06/0.2625, allocations: 0 / 1.061 GB, free: 15.35 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.000916/0.2634, allocations: 0.6392 MB / 1.061 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.2635, allocations: 11.97 kB / 1.061 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.067e-05/0.2635, allocations: 66.72 kB / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008377/0.2644, allocations: 140.4 kB / 1.062 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003107/0.2647, allocations: 279.7 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.2647, allocations: 25.02 kB / 1.062 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.803e-05/0.2648, allocations: 24.38 kB / 1.062 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005761/0.2653, allocations: 467.7 kB / 1.062 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.2654, allocations: 3.938 kB / 1.062 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.58e-05/0.2654, allocations: 16 kB / 1.062 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.265e-05/0.2655, allocations: 28.55 kB / 1.062 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004452/0.2659, allocations: 321.9 kB / 1.063 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001858/0.2678, allocations: 2.181 MB / 1.065 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003178/0.2681, allocations: 263.7 kB / 1.065 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002152/0.2683, allocations: 108.8 kB / 1.065 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.062e-05/0.2683, allocations: 4 kB / 1.065 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.991e-05/0.2684, allocations: 30.56 kB / 1.065 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.283e-06/0.2684, allocations: 4 kB / 1.065 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.000514/0.2689, allocations: 301.2 kB / 1.066 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.792e-05/0.2689, allocations: 51.41 kB / 1.066 GB, free: 10 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002367/0.2692, allocations: 270.5 kB / 1.066 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.2692, allocations: 29.7 kB / 1.066 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.2693, allocations: 207.8 kB / 1.066 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.185e-05/0.2693, allocations: 55.3 kB / 1.066 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.423e-05/0.2694, allocations: 45.86 kB / 1.066 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.496e-05/0.2695, allocations: 338.8 kB / 1.067 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.811e-05/0.2696, allocations: 56.44 kB / 1.067 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/0.2697, allocations: 148 kB / 1.067 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002269/0.27, allocations: 219.2 kB / 1.067 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.27, allocations: 0 / 1.067 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003727/0.2704, allocations: 276.5 kB / 1.067 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.2704, allocations: 8 kB / 1.067 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.2704, allocations: 0 / 1.067 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001332/0.2705, allocations: 25.22 kB / 1.067 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001887/0.2707, allocations: 55.97 kB / 1.067 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008364/0.2716, allocations: 1.319 MB / 1.069 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001515/0.2717, allocations: 27.69 kB / 1.069 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.2718, allocations: 12 kB / 1.069 GB, free: 6.688 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.0001303/0.2719, allocations: 161.8 kB / 1.069 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.678e-05/0.272, allocations: 27.66 kB / 1.069 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.288e-05/0.272, allocations: 29.83 kB / 1.069 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.272, allocations: 0 / 1.069 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.272, allocations: 0 / 1.069 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.272, allocations: 4.062 kB / 1.069 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007497/0.2728, allocations: 0.7024 MB / 1.07 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.2728, allocations: 8.188 kB / 1.07 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.039e-05/0.2729, allocations: 23.98 kB / 1.07 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.507e-05/0.273, allocations: 24.97 kB / 1.07 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.273, allocations: 8 kB / 1.07 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000763/0.2738, allocations: 1.319 MB / 1.071 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.2738, allocations: 4.031 kB / 1.071 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002842/0.2741, allocations: 321.2 kB / 1.071 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.414e-05/0.2741, allocations: 108.8 kB / 1.071 GB, free: 3.668 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.938e-05/0.2742, allocations: 8 kB / 1.071 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.2743, allocations: 11.98 kB / 1.071 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.81e-05/0.2744, allocations: 19.98 kB / 1.071 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.2744, allocations: 4 kB / 1.071 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000158/0.2746, allocations: 193.9 kB / 1.072 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2746, allocations: 0 / 1.072 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003736/0.2749, allocations: 79.78 kB / 1.072 GB, free: 3.363 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.0005213/0.2755, allocations: 0.8546 MB / 1.072 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003922/0.2759, allocations: 269.5 kB / 1.073 GB, free: 2.184 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2759, allocations: 0 / 1.073 GB, free: 2.184 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001868/0.2761, allocations: 179.7 kB / 1.073 GB, free: 1.996 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004355/0.2765, allocations: 62.16 kB / 1.073 GB, free: 1.938 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002627/0.2792, allocations: 2.834 MB / 1.076 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002914/0.2795, allocations: 0.7947 MB / 1.076 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001351/0.2796, allocations: 42.27 kB / 1.077 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.2797, allocations: 83.41 kB / 1.077 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.2797, allocations: 3.938 kB / 1.077 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.557/0.8367, allocations: 5.073 MB / 1.082 GB, free: 9.043 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002226/0.837, allocations: 218 kB / 1.082 GB, free: 8.793 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.234/3.071, allocations: 3.938 kB / 1.082 GB, free: 8.789 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