Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_9_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.001054/0.001054, allocations: 108 kB / 15.61 MB, free: 152 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.001085/0.001085, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.344/1.344, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.271/2.271, allocations: 390.3 MB / 0.6647 GB, free: 436 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00159/0.00159, allocations: 63.91 kB / 0.8127 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5493/0.5509, allocations: 140.4 MB / 0.9497 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004279/0.5553, allocations: 3.825 MB / 0.9535 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002029/0.5573, allocations: 1.744 MB / 0.9552 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.5575, allocations: 10.59 kB / 0.9552 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001128/0.5586, allocations: 490.4 kB / 0.9556 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003512/0.559, allocations: 223.1 kB / 0.9558 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003665/0.5593, allocations: 206.5 kB / 0.956 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003417/0.5597, allocations: 470 kB / 0.9565 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004405/0.5601, allocations: 378.8 kB / 0.9569 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001462/0.5603, allocations: 198.1 kB / 0.957 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002818/0.5606, allocations: 213.7 kB / 0.9572 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.512e-05/0.5606, allocations: 27.5 kB / 0.9573 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003303/0.561, allocations: 244.4 kB / 0.9575 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.788e-05/0.5611, allocations: 122.1 kB / 0.9576 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.5612, allocations: 175.7 kB / 0.9578 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004442/0.5617, allocations: 0.4954 MB / 0.9583 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.5617, allocations: 3.938 kB / 0.9583 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.252e-06/0.5617, allocations: 0.9062 kB / 0.9583 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.908e-06/0.5617, allocations: 0 / 0.9583 GB, free: 2.816 MB / 0.7169 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.0007737/0.5625, allocations: 0.6201 MB / 0.9589 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.5625, allocations: 9.188 kB / 0.9589 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.739e-05/0.5626, allocations: 70.31 kB / 0.959 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008301/0.5634, allocations: 138.9 kB / 0.9591 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002747/0.5637, allocations: 284.1 kB / 0.9594 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.944e-05/0.5637, allocations: 20.88 kB / 0.9594 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.213e-05/0.5638, allocations: 26.41 kB / 0.9594 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005308/0.5643, allocations: 467.4 kB / 0.9599 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.5643, allocations: 3.938 kB / 0.9599 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.5644, allocations: 15.59 kB / 0.9599 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.496e-05/0.5644, allocations: 31.02 kB / 0.9599 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004084/0.5648, allocations: 324.5 kB / 0.9602 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001672/0.5665, allocations: 2.192 MB / 0.9624 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003369/0.5669, allocations: 251.5 kB / 0.9626 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002224/0.5671, allocations: 113.1 kB / 0.9627 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/0.5671, allocations: 1.406 kB / 0.9627 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/0.5672, allocations: 33.22 kB / 0.9627 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.352e-06/0.5672, allocations: 0 / 0.9627 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0005387/0.5677, allocations: 305.1 kB / 0.963 GB, free: 14.72 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.923e-05/0.5677, allocations: 56.91 kB / 0.9631 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002446/0.568, allocations: 270.7 kB / 0.9633 GB, free: 14.47 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.568, allocations: 26.89 kB / 0.9634 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.5681, allocations: 209.2 kB / 0.9636 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.486e-05/0.5682, allocations: 54.12 kB / 0.9636 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.863e-05/0.5682, allocations: 52.22 kB / 0.9637 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.966e-05/0.5683, allocations: 335.6 kB / 0.964 GB, free: 13.82 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.182e-05/0.5684, allocations: 58.5 kB / 0.964 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.5686, allocations: 148.4 kB / 0.9642 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002346/0.5688, allocations: 225.1 kB / 0.9644 GB, free: 13.47 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.5688, allocations: 0 / 0.9644 GB, free: 13.47 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003671/0.5692, allocations: 259.8 kB / 0.9646 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.5692, allocations: 9.562 kB / 0.9647 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.5692, allocations: 2.594 kB / 0.9647 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001443/0.5694, allocations: 27.86 kB / 0.9647 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.5696, allocations: 49.61 kB / 0.9647 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00092/0.5705, allocations: 1.415 MB / 0.9661 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000159/0.5707, allocations: 32.84 kB / 0.9661 GB, free: 11.81 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/0.5707, allocations: 8.25 kB / 0.9661 GB, free: 11.81 MB / 0.7325 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.0001373/0.5708, allocations: 174.2 kB / 0.9663 GB, free: 11.66 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.803e-05/0.5709, allocations: 22.97 kB / 0.9663 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.338e-05/0.5709, allocations: 32.05 kB / 0.9664 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.5709, allocations: 2.594 kB / 0.9664 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.571, allocations: 0 / 0.9664 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.716e-06/0.571, allocations: 0 / 0.9664 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008082/0.5718, allocations: 0.7099 MB / 0.9671 GB, free: 10.99 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.5718, allocations: 5.797 kB / 0.9671 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.629e-05/0.5719, allocations: 27.02 kB / 0.9671 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.62e-05/0.572, allocations: 33 kB / 0.9671 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.572, allocations: 6.125 kB / 0.9671 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000839/0.5728, allocations: 1.41 MB / 0.9685 GB, free: 9.496 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.5728, allocations: 2.406 kB / 0.9685 GB, free: 9.496 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002931/0.5731, allocations: 315.6 kB / 0.9688 GB, free: 9.23 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.848e-05/0.5732, allocations: 116.6 kB / 0.9689 GB, free: 9.109 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.911e-05/0.5733, allocations: 3.094 kB / 0.9689 GB, free: 9.109 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/0.5734, allocations: 18.88 kB / 0.9689 GB, free: 9.098 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.132e-05/0.5735, allocations: 14.64 kB / 0.969 GB, free: 9.09 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.179e-05/0.5735, allocations: 9.531 kB / 0.969 GB, free: 9.086 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001646/0.5737, allocations: 190.1 kB / 0.9691 GB, free: 8.957 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5737, allocations: 5 kB / 0.9692 GB, free: 8.953 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003759/0.5741, allocations: 75.38 kB / 0.9692 GB, free: 8.938 MB / 0.7325 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.0005267/0.5746, allocations: 0.8542 MB / 0.9701 GB, free: 8.133 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004108/0.575, allocations: 269.3 kB / 0.9703 GB, free: 7.953 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.575, allocations: 0 / 0.9703 GB, free: 7.953 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001929/0.5752, allocations: 190.9 kB / 0.9705 GB, free: 7.801 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000449/0.5757, allocations: 61.73 kB / 0.9706 GB, free: 7.77 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002666/0.5784, allocations: 2.725 MB / 0.9732 GB, free: 5.555 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003139/0.5787, allocations: 0.7926 MB / 0.974 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001404/0.5788, allocations: 40.58 kB / 0.974 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.5789, allocations: 91.53 kB / 0.9741 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.5789, allocations: 192 / 0.9741 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.048/2.627, allocations: 5.276 MB / 0.9793 GB, free: 2.102 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.58/16.21, allocations: 1.406 kB / 0.9793 GB, free: 2.102 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches