Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_10_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.001179/0.001179, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 194 kB / 16.53 MB, free: 6.391 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.346/1.346, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.442/2.442, allocations: 437 MB / 0.7104 GB, free: 5 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 63.89 kB / 0.8693 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5354/0.5367, allocations: 151.6 MB / 1.017 GB, free: 2.414 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005758/0.5425, allocations: 3.841 MB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002772/0.5453, allocations: 1.733 MB / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002573/0.5456, allocations: 8 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001445/0.5471, allocations: 490.1 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005876/0.5477, allocations: 226.9 kB / 1.024 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005449/0.5482, allocations: 215 kB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005354/0.5488, allocations: 474.4 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005518/0.5493, allocations: 363.4 kB / 1.025 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002547/0.5496, allocations: 195.4 kB / 1.025 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003929/0.55, allocations: 211.2 kB / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.783e-05/0.5501, allocations: 28 kB / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004456/0.5505, allocations: 251.4 kB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001303/0.5507, allocations: 119.7 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000191/0.5509, allocations: 167.2 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006384/0.5515, allocations: 0.4984 MB / 1.026 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.5515, allocations: 8 kB / 1.026 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.443e-06/0.5515, allocations: 0 / 1.026 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.329e-05/0.5515, allocations: 0 / 1.026 GB, free: 9.613 MB / 0.7794 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.001036/0.5526, allocations: 0.6393 MB / 1.027 GB, free: 8.926 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.5526, allocations: 8.031 kB / 1.027 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.649e-05/0.5527, allocations: 66.72 kB / 1.027 GB, free: 8.844 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009304/0.5537, allocations: 136.4 kB / 1.027 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003516/0.554, allocations: 283.7 kB / 1.027 GB, free: 8.395 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.554, allocations: 25.02 kB / 1.027 GB, free: 8.371 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.114e-05/0.5541, allocations: 24.38 kB / 1.027 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006524/0.5548, allocations: 471.7 kB / 1.028 GB, free: 7.848 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.5548, allocations: 0 / 1.028 GB, free: 7.848 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.567e-05/0.5548, allocations: 12 kB / 1.028 GB, free: 7.836 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-05/0.5549, allocations: 24.55 kB / 1.028 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005233/0.5554, allocations: 321.9 kB / 1.028 GB, free: 7.5 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002163/0.5576, allocations: 2.197 MB / 1.03 GB, free: 5.09 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003611/0.5579, allocations: 251.8 kB / 1.03 GB, free: 4.816 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002486/0.5582, allocations: 112.8 kB / 1.03 GB, free: 4.703 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.028e-05/0.5582, allocations: 0 / 1.03 GB, free: 4.703 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.5583, allocations: 38.56 kB / 1.03 GB, free: 4.656 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.112e-06/0.5583, allocations: 0 / 1.03 GB, free: 4.656 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0005924/0.5589, allocations: 307.5 kB / 1.031 GB, free: 4.328 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.539e-05/0.5589, allocations: 51.41 kB / 1.031 GB, free: 4.266 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002778/0.5592, allocations: 266.6 kB / 1.031 GB, free: 4 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.5592, allocations: 25.7 kB / 1.031 GB, free: 3.969 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.5594, allocations: 211.8 kB / 1.031 GB, free: 3.758 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.678e-05/0.5594, allocations: 47.3 kB / 1.031 GB, free: 3.711 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.713e-05/0.5595, allocations: 53.84 kB / 1.031 GB, free: 3.648 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.5596, allocations: 334.8 kB / 1.032 GB, free: 3.312 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.5597, allocations: 60.44 kB / 1.032 GB, free: 3.254 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000144/0.5599, allocations: 146.2 kB / 1.032 GB, free: 3.074 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002538/0.5601, allocations: 221.1 kB / 1.032 GB, free: 2.82 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.5601, allocations: 4 kB / 1.032 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004193/0.5605, allocations: 265.9 kB / 1.032 GB, free: 2.547 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.5606, allocations: 7.938 kB / 1.032 GB, free: 2.539 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.986e-06/0.5606, allocations: 8.359 kB / 1.032 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001524/0.5607, allocations: 24.84 kB / 1.032 GB, free: 2.504 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001946/0.5609, allocations: 51.92 kB / 1.032 GB, free: 2.453 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001089/0.562, allocations: 1.414 MB / 1.034 GB, free: 0.9023 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000172/0.5622, allocations: 31.59 kB / 1.034 GB, free: 0.8711 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.672e-05/0.5623, allocations: 8 kB / 1.034 GB, free: 0.8633 MB / 0.7794 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.0001655/0.5624, allocations: 173.8 kB / 1.034 GB, free: 0.6836 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.631e-05/0.5625, allocations: 19.81 kB / 1.034 GB, free: 0.6641 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.216e-05/0.5626, allocations: 29.83 kB / 1.034 GB, free: 0.6289 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.5626, allocations: 0 / 1.034 GB, free: 0.6289 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.5626, allocations: 4 kB / 1.034 GB, free: 0.625 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.5626, allocations: 3.984 kB / 1.034 GB, free: 0.6211 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.5636, allocations: 0.7063 MB / 1.035 GB, free: 15.82 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.5636, allocations: 0 / 1.035 GB, free: 15.82 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.333e-05/0.5637, allocations: 23.98 kB / 1.035 GB, free: 15.8 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.024e-05/0.5638, allocations: 32.97 kB / 1.035 GB, free: 15.77 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.5638, allocations: 4 kB / 1.035 GB, free: 15.76 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/0.5649, allocations: 1.418 MB / 1.036 GB, free: 14.2 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.78e-06/0.5649, allocations: 7.969 kB / 1.036 GB, free: 14.2 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003797/0.5653, allocations: 315 kB / 1.037 GB, free: 13.85 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.5654, allocations: 116.8 kB / 1.037 GB, free: 13.72 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.344e-05/0.5654, allocations: 4 kB / 1.037 GB, free: 13.71 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.5656, allocations: 8 kB / 1.037 GB, free: 13.71 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.495e-05/0.5657, allocations: 23.92 kB / 1.037 GB, free: 13.68 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.5657, allocations: 4 kB / 1.037 GB, free: 13.68 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001835/0.5659, allocations: 194 kB / 1.037 GB, free: 13.49 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5659, allocations: 0 / 1.037 GB, free: 13.49 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004014/0.5663, allocations: 75.78 kB / 1.037 GB, free: 13.42 MB / 0.795 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.0005878/0.5669, allocations: 0.8545 MB / 1.038 GB, free: 12.52 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004686/0.5674, allocations: 279.7 kB / 1.038 GB, free: 12.23 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.5674, allocations: 0 / 1.038 GB, free: 12.23 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002202/0.5676, allocations: 187.5 kB / 1.038 GB, free: 12.04 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004567/0.5681, allocations: 63.11 kB / 1.038 GB, free: 11.98 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003352/0.5714, allocations: 2.722 MB / 1.041 GB, free: 9.062 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.5718, allocations: 0.7909 MB / 1.042 GB, free: 8.246 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001663/0.572, allocations: 42.25 kB / 1.042 GB, free: 8.203 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.5721, allocations: 79.42 kB / 1.042 GB, free: 8.125 MB / 0.795 GB Notification: Performance of SimCode: time 3.31e-07/0.5722, allocations: 0 / 1.042 GB, free: 8.125 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2718/0.844, allocations: 5.284 MB / 1.047 GB, free: 2.965 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/14.05, allocations: 9.094 kB / 1.047 GB, free: 2.961 MB / 0.795 GB (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches