Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Lines.Examples.Resistance,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance",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.00172/0.00172, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001405/0.001405, allocations: 193.5 kB / 16.14 MB, free: 6.711 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.352/1.352, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.362/2.362, allocations: 390.2 MB / 0.6643 GB, free: 0.6523 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 59.91 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6119/0.6133, allocations: 140.4 MB / 0.949 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003641/0.617, allocations: 3.125 MB / 0.9521 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001586/0.6186, allocations: 1.325 MB / 0.9534 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.6187, allocations: 4.375 kB / 0.9534 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0007956/0.6195, allocations: 313.3 kB / 0.9537 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002747/0.6198, allocations: 136.8 kB / 0.9538 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002854/0.6201, allocations: 122.9 kB / 0.9539 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003514/0.6204, allocations: 436.4 kB / 0.9544 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002759/0.6207, allocations: 156.3 kB / 0.9545 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.6208, allocations: 102.8 kB / 0.9546 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002419/0.6211, allocations: 151.3 kB / 0.9547 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.014e-05/0.6211, allocations: 13.34 kB / 0.9548 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002803/0.6214, allocations: 206 kB / 0.955 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.815e-05/0.6215, allocations: 74.64 kB / 0.955 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.6216, allocations: 114.7 kB / 0.9551 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003334/0.622, allocations: 340.5 kB / 0.9555 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.622, allocations: 0 / 0.9555 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.62e-07/0.622, allocations: 0 / 0.9555 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.622, allocations: 1.312 kB / 0.9555 GB, free: 4.426 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006915/0.6227, allocations: 0.5194 MB / 0.956 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.6227, allocations: 8.812 kB / 0.956 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.504e-05/0.6228, allocations: 55.14 kB / 0.956 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005513/0.6233, allocations: 75.48 kB / 0.9561 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002318/0.6236, allocations: 239.5 kB / 0.9563 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.776e-05/0.6236, allocations: 16.2 kB / 0.9563 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.837e-05/0.6236, allocations: 24.28 kB / 0.9564 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003733/0.624, allocations: 302.4 kB / 0.9567 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.624, allocations: 0 / 0.9567 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.173e-05/0.6241, allocations: 7.531 kB / 0.9567 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.085e-05/0.6241, allocations: 25.2 kB / 0.9567 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002687/0.6244, allocations: 200 kB / 0.9569 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.6254, allocations: 1.465 MB / 0.9583 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002215/0.6257, allocations: 177 kB / 0.9585 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.651e-05/0.6257, allocations: 36.31 kB / 0.9585 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.607e-06/0.6257, allocations: 1.25 kB / 0.9585 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.427e-05/0.6258, allocations: 31.78 kB / 0.9585 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.6258, allocations: 0 / 0.9585 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004208/0.6262, allocations: 228.8 kB / 0.9588 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.421e-05/0.6262, allocations: 57.34 kB / 0.9588 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001681/0.6264, allocations: 187.9 kB / 0.959 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.024e-05/0.6264, allocations: 25.7 kB / 0.959 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.291e-05/0.6265, allocations: 172.2 kB / 0.9592 GB, free: 1 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.523e-05/0.6265, allocations: 19.09 kB / 0.9592 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-05/0.6266, allocations: 42.23 kB / 0.9592 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.46e-05/0.6266, allocations: 338.1 kB / 0.9596 GB, free: 0.6133 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.583e-05/0.6267, allocations: 30.05 kB / 0.9596 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.156e-05/0.6268, allocations: 101.9 kB / 0.9597 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001631/0.627, allocations: 149.7 kB / 0.9598 GB, free: 372 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.627, allocations: 5.125 kB / 0.9598 GB, free: 368 kB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003099/0.6273, allocations: 187.1 kB / 0.96 GB, free: 252 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.6273, allocations: 5.719 kB / 0.96 GB, free: 252 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-06/0.6274, allocations: 2.969 kB / 0.96 GB, free: 252 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001697/0.6275, allocations: 29.31 kB / 0.9601 GB, free: 232 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.6277, allocations: 35.11 kB / 0.9601 GB, free: 220 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001062/0.6287, allocations: 1.316 MB / 0.9614 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.6289, allocations: 28.91 kB / 0.9614 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.312e-05/0.6289, allocations: 6.062 kB / 0.9614 GB, free: 14.84 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * 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.0001279/0.629, allocations: 146.3 kB / 0.9615 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.994e-05/0.6291, allocations: 15.25 kB / 0.9616 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.158e-05/0.6291, allocations: 17.33 kB / 0.9616 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.6291, allocations: 1.031 kB / 0.9616 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.6291, allocations: 1.094 kB / 0.9616 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.6291, allocations: 4.062 kB / 0.9616 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005107/0.6296, allocations: 457.3 kB / 0.962 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.6297, allocations: 0.9062 kB / 0.962 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.662e-05/0.6297, allocations: 6.062 kB / 0.962 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.388e-05/0.6298, allocations: 19.06 kB / 0.962 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.6298, allocations: 5.094 kB / 0.962 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008169/0.6306, allocations: 1.309 MB / 0.9633 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.6306, allocations: 1.125 kB / 0.9633 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002011/0.6308, allocations: 204.8 kB / 0.9635 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.084e-05/0.6309, allocations: 102.6 kB / 0.9636 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.156e-05/0.6309, allocations: 13.28 kB / 0.9636 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.6311, allocations: 7.344 kB / 0.9636 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.937e-05/0.6311, allocations: 6.672 kB / 0.9636 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.082e-06/0.6311, allocations: 1.344 kB / 0.9636 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001185/0.6312, allocations: 151.8 kB / 0.9638 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6312, allocations: 1.094 kB / 0.9638 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003221/0.6315, allocations: 51.78 kB / 0.9638 GB, free: 12.45 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * 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.0004511/0.632, allocations: 0.7514 MB / 0.9646 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003397/0.6324, allocations: 211.2 kB / 0.9648 GB, free: 11.57 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.6324, allocations: 0 / 0.9648 GB, free: 11.57 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001482/0.6325, allocations: 148.4 kB / 0.9649 GB, free: 11.44 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003572/0.6329, allocations: 28.39 kB / 0.9649 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002063/0.635, allocations: 2.115 MB / 0.967 GB, free: 9.594 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.6353, allocations: 0.7437 MB / 0.9677 GB, free: 8.867 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.451e-05/0.6354, allocations: 21.23 kB / 0.9678 GB, free: 8.855 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.58e-05/0.6354, allocations: 51.27 kB / 0.9678 GB, free: 8.816 MB / 0.7325 GB Notification: Performance of SimCode: time 2.11e-07/0.6354, allocations: 0 / 0.9678 GB, free: 8.816 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01324/0.6487, allocations: 3.468 MB / 0.9712 GB, free: 7.137 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001647/0.6489, allocations: 231.1 kB / 0.9714 GB, free: 6.867 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.734/2.383, allocations: 1.312 kB / 0.9714 GB, free: 6.867 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches