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.0009848/0.0009847, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.007944/0.007944, allocations: 168.7 kB / 16.26 MB, free: 6.652 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.299/1.299, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.398/2.398, allocations: 462.6 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002918/0.0002919, allocations: 8.438 kB / 0.9029 GB, free: 36.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.231, allocations: 159.6 MB / 1.059 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.003707/0.2348, allocations: 3.5 MB / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002122/0.2369, allocations: 1.703 MB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.237, allocations: 7.938 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001636/0.2372, allocations: 59.55 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004017/0.2376, allocations: 211.1 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003876/0.238, allocations: 195.6 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000543/0.2385, allocations: 0.6583 MB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003547/0.2389, allocations: 318.3 kB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.2391, allocations: 151.4 kB / 1.065 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003174/0.2394, allocations: 203.2 kB / 1.066 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.227e-05/0.2395, allocations: 16 kB / 1.066 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003875/0.2399, allocations: 307.3 kB / 1.066 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.24, allocations: 107.7 kB / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.2401, allocations: 176.8 kB / 1.066 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004633/0.2406, allocations: 0.4986 MB / 1.067 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2406, allocations: 4 kB / 1.067 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2406, allocations: 0 / 1.067 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.2406, allocations: 0 / 1.067 GB, free: 12.75 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.0007257/0.2413, allocations: 0.5809 MB / 1.067 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.2414, allocations: 15.91 kB / 1.067 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.697e-05/0.2415, allocations: 66.72 kB / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008205/0.2423, allocations: 144.3 kB / 1.067 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002837/0.2426, allocations: 283.7 kB / 1.068 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.2426, allocations: 21.03 kB / 1.068 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.888e-05/0.2427, allocations: 24.38 kB / 1.068 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005696/0.2432, allocations: 471.7 kB / 1.068 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.2432, allocations: 3.938 kB / 1.068 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.002e-05/0.2433, allocations: 12 kB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-05/0.2433, allocations: 24.55 kB / 1.068 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004337/0.2438, allocations: 321.9 kB / 1.069 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001796/0.2456, allocations: 2.201 MB / 1.071 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003126/0.2459, allocations: 251.8 kB / 1.071 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002212/0.2461, allocations: 112.9 kB / 1.071 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.2461, allocations: 0 / 1.071 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.2462, allocations: 38.56 kB / 1.071 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.032e-06/0.2462, allocations: 4 kB / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0005007/0.2467, allocations: 306.7 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.608e-05/0.2467, allocations: 55.34 kB / 1.071 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000238/0.247, allocations: 270.5 kB / 1.072 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.247, allocations: 25.7 kB / 1.072 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.2471, allocations: 207.8 kB / 1.072 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.343e-05/0.2471, allocations: 55.3 kB / 1.072 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.232e-05/0.2472, allocations: 21.72 kB / 1.072 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.735e-05/0.2473, allocations: 338.8 kB / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.938e-05/0.2474, allocations: 52.44 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.2475, allocations: 148.8 kB / 1.073 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002327/0.2477, allocations: 221.8 kB / 1.073 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.2477, allocations: 4 kB / 1.073 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003649/0.2481, allocations: 269.8 kB / 1.073 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.2481, allocations: 8 kB / 1.073 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2482, allocations: 0 / 1.073 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001236/0.2483, allocations: 25.22 kB / 1.073 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001637/0.2485, allocations: 51.92 kB / 1.073 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008512/0.2493, allocations: 1.323 MB / 1.074 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001479/0.2495, allocations: 27.69 kB / 1.074 GB, free: 4.168 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.2495, allocations: 8 kB / 1.074 GB, free: 4.16 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.0001298/0.2496, allocations: 165.8 kB / 1.075 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.508e-05/0.2497, allocations: 27.66 kB / 1.075 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.624e-05/0.2497, allocations: 33.81 kB / 1.075 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.2497, allocations: 0 / 1.075 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2497, allocations: 4.094 kB / 1.075 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.2498, allocations: 4 kB / 1.075 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007748/0.2505, allocations: 0.7065 MB / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.2505, allocations: 0 / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.028e-05/0.2506, allocations: 23.98 kB / 1.075 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-05/0.2507, allocations: 24.84 kB / 1.075 GB, free: 3.074 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.2507, allocations: 4 kB / 1.075 GB, free: 3.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007823/0.2515, allocations: 1.319 MB / 1.077 GB, free: 1.617 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2515, allocations: 0 / 1.077 GB, free: 1.617 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002877/0.2518, allocations: 321.2 kB / 1.077 GB, free: 1.266 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.279e-05/0.2519, allocations: 108.8 kB / 1.077 GB, free: 1.141 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.436e-05/0.2519, allocations: 11.94 kB / 1.077 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.2521, allocations: 15.98 kB / 1.077 GB, free: 1.113 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.52e-05/0.2521, allocations: 19.92 kB / 1.077 GB, free: 1.094 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.2521, allocations: 4 kB / 1.077 GB, free: 1.09 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001558/0.2523, allocations: 193.9 kB / 1.077 GB, free: 0.9062 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2523, allocations: 0 / 1.077 GB, free: 0.9062 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003391/0.2527, allocations: 75.78 kB / 1.077 GB, free: 0.832 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.0005055/0.2532, allocations: 0.8531 MB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003637/0.2535, allocations: 266.4 kB / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2536, allocations: 0.75 kB / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001851/0.2537, allocations: 182.8 kB / 1.079 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000461/0.2542, allocations: 57.31 kB / 1.079 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002615/0.2568, allocations: 2.849 MB / 1.081 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003086/0.2572, allocations: 0.8025 MB / 1.082 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001342/0.2573, allocations: 54.17 kB / 1.082 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.2574, allocations: 83.41 kB / 1.082 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.2574, allocations: 0 / 1.082 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3196/0.577, allocations: 4.977 MB / 1.087 GB, free: 6.605 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002189/0.5773, allocations: 218.6 kB / 1.087 GB, free: 6.355 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.081/2.658, allocations: 0 / 1.087 GB, free: 6.355 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