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.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.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.005166/0.005166, allocations: 101.2 kB / 15.73 MB, free: 6.422 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.001178/0.001178, allocations: 188.8 kB / 16.67 MB, free: 6.352 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.316/1.316, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.292/2.292, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 61.62 kB / 0.9504 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2472, allocations: 140.4 MB / 1.087 GB, free: 2.051 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004173/0.2514, allocations: 3.08 MB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001867/0.2533, allocations: 1.324 MB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.2534, allocations: 8 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0009762/0.2544, allocations: 338.7 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003036/0.2547, allocations: 143.3 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003522/0.2551, allocations: 135.6 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003072/0.2554, allocations: 310.7 kB / 1.093 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003808/0.2558, allocations: 239.1 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.2559, allocations: 123.6 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002464/0.2562, allocations: 139.5 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.218e-05/0.2562, allocations: 20 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002595/0.2565, allocations: 171.6 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.135e-05/0.2566, allocations: 79.8 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.2567, allocations: 107.5 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003745/0.2571, allocations: 335.8 kB / 1.094 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2571, allocations: 0 / 1.094 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.724e-06/0.2571, allocations: 0 / 1.094 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.231e-06/0.2571, allocations: 0 / 1.094 GB, free: 11.52 MB / 0.8575 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.000857/0.258, allocations: 0.5147 MB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.258, allocations: 12.03 kB / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.493e-05/0.2581, allocations: 58.67 kB / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006161/0.2587, allocations: 76.58 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003614/0.2591, allocations: 243.9 kB / 1.095 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.9e-05/0.2591, allocations: 24.73 kB / 1.095 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.338e-05/0.2592, allocations: 16.38 kB / 1.095 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004792/0.2597, allocations: 299.1 kB / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.2597, allocations: 0 / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.82e-05/0.2597, allocations: 12 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.49e-05/0.2598, allocations: 20.36 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003207/0.2601, allocations: 196.9 kB / 1.095 GB, free: 9.945 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.2617, allocations: 1.46 MB / 1.097 GB, free: 8.324 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002469/0.2619, allocations: 179.7 kB / 1.097 GB, free: 8.121 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.607e-05/0.262, allocations: 28.84 kB / 1.097 GB, free: 8.09 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.568e-06/0.262, allocations: 11.94 kB / 1.097 GB, free: 8.078 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.117e-05/0.262, allocations: 30.56 kB / 1.097 GB, free: 8.039 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.262, allocations: 0 / 1.097 GB, free: 8.039 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004568/0.2625, allocations: 231.5 kB / 1.097 GB, free: 7.785 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.884e-05/0.2625, allocations: 51.41 kB / 1.097 GB, free: 7.723 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001743/0.2627, allocations: 186.5 kB / 1.097 GB, free: 7.531 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.2628, allocations: 33.7 kB / 1.097 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.247e-05/0.2628, allocations: 167.6 kB / 1.098 GB, free: 7.324 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.924e-05/0.2629, allocations: 27.56 kB / 1.098 GB, free: 7.297 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.309e-05/0.2629, allocations: 33.7 kB / 1.098 GB, free: 7.258 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.263, allocations: 330.8 kB / 1.098 GB, free: 6.926 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.034e-05/0.2631, allocations: 35.98 kB / 1.098 GB, free: 6.891 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.267e-05/0.2632, allocations: 98.75 kB / 1.098 GB, free: 6.766 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000166/0.2634, allocations: 148.4 kB / 1.098 GB, free: 6.59 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2634, allocations: 4.062 kB / 1.098 GB, free: 6.586 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003094/0.2637, allocations: 194.2 kB / 1.098 GB, free: 6.387 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.2637, allocations: 8 kB / 1.098 GB, free: 6.379 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.2637, allocations: 0 / 1.098 GB, free: 6.379 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001814/0.2639, allocations: 24.84 kB / 1.098 GB, free: 6.352 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.2641, allocations: 31.92 kB / 1.098 GB, free: 6.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/0.2654, allocations: 1.418 MB / 1.1 GB, free: 4.762 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.2655, allocations: 11.94 kB / 1.1 GB, free: 4.75 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.2656, allocations: 12.09 kB / 1.1 GB, free: 4.738 MB / 0.8575 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.0001478/0.2657, allocations: 157.7 kB / 1.1 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4e-05/0.2658, allocations: 15.81 kB / 1.1 GB, free: 4.559 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.282e-05/0.2658, allocations: 17.41 kB / 1.1 GB, free: 4.539 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2658, allocations: 0 / 1.1 GB, free: 4.539 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.2658, allocations: 0 / 1.1 GB, free: 4.539 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.2658, allocations: 4.031 kB / 1.1 GB, free: 4.535 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005354/0.2664, allocations: 451.2 kB / 1.1 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.2664, allocations: 0 / 1.1 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.906e-05/0.2664, allocations: 8 kB / 1.1 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.422e-05/0.2665, allocations: 24.78 kB / 1.1 GB, free: 4 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.2665, allocations: 0 / 1.1 GB, free: 4 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001026/0.2676, allocations: 1.418 MB / 1.102 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2676, allocations: 3.938 kB / 1.102 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002272/0.2678, allocations: 216.2 kB / 1.102 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.687e-05/0.2679, allocations: 96.91 kB / 1.102 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.681e-05/0.2679, allocations: 0 / 1.102 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.268, allocations: 8 kB / 1.102 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.289e-05/0.2681, allocations: 3.984 kB / 1.102 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.2681, allocations: 4 kB / 1.102 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001301/0.2682, allocations: 144.9 kB / 1.102 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2682, allocations: 0 / 1.102 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003298/0.2685, allocations: 59.84 kB / 1.102 GB, free: 1.875 MB / 0.8575 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.0004684/0.269, allocations: 0.7414 MB / 1.103 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003468/0.2694, allocations: 218.7 kB / 1.103 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.2694, allocations: 0 / 1.103 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001513/0.2695, allocations: 150.6 kB / 1.103 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003453/0.2699, allocations: 29.05 kB / 1.103 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/0.2721, allocations: 2.058 MB / 1.105 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.2724, allocations: 0.7513 MB / 1.106 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.71e-05/0.2725, allocations: 25.53 kB / 1.106 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.187e-05/0.2726, allocations: 51.42 kB / 1.106 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of SimCode: time 3.8e-07/0.2726, allocations: 0 / 1.106 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02191/0.2945, allocations: 3.718 MB / 1.11 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.19/9.485, allocations: 4.062 kB / 1.11 GB, free: 10.05 MB / 0.8731 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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