Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.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.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource",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.007376/0.007376, allocations: 97.66 kB / 15.73 MB, free: 6.008 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.001763/0.001763, allocations: 195.1 kB / 16.68 MB, free: 5.934 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.348 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.362/2.362, allocations: 390.3 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 65.78 kB / 0.9504 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2343, allocations: 140.4 MB / 1.087 GB, free: 2.059 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.00445/0.2387, allocations: 3.213 MB / 1.091 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002108/0.2409, allocations: 1.371 MB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001776/0.2411, allocations: 4 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.2422, allocations: 346.5 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000396/0.2426, allocations: 143.2 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003642/0.2429, allocations: 147.6 kB / 1.093 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003772/0.2433, allocations: 330.6 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000421/0.2438, allocations: 267.9 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002102/0.244, allocations: 139.5 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002921/0.2443, allocations: 147.5 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.553e-05/0.2443, allocations: 20 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002879/0.2446, allocations: 175.6 kB / 1.094 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.2448, allocations: 87.72 kB / 1.094 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.2449, allocations: 115.5 kB / 1.094 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004969/0.2454, allocations: 358.6 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2454, allocations: 0 / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2454, allocations: 0 / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.092e-05/0.2454, allocations: 0 / 1.094 GB, free: 11.21 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009284/0.2464, allocations: 0.5532 MB / 1.095 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.2464, allocations: 8.031 kB / 1.095 GB, free: 10.6 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.849e-05/0.2465, allocations: 54.73 kB / 1.095 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005845/0.2471, allocations: 80.72 kB / 1.095 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000327/0.2474, allocations: 263.9 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.2474, allocations: 12.81 kB / 1.095 GB, free: 10.15 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.559e-05/0.2475, allocations: 24.38 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004643/0.2479, allocations: 308.5 kB / 1.095 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/0.248, allocations: 7.938 kB / 1.095 GB, free: 9.793 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.761e-05/0.248, allocations: 11.98 kB / 1.095 GB, free: 9.781 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.088e-05/0.248, allocations: 16.44 kB / 1.095 GB, free: 9.766 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003594/0.2484, allocations: 217.5 kB / 1.096 GB, free: 9.555 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001466/0.2499, allocations: 1.482 MB / 1.097 GB, free: 7.906 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003927/0.2503, allocations: 203.6 kB / 1.097 GB, free: 7.68 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.46e-05/0.2504, allocations: 48.84 kB / 1.097 GB, free: 7.629 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.285e-05/0.2504, allocations: 7.922 kB / 1.097 GB, free: 7.621 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.976e-05/0.2504, allocations: 34.56 kB / 1.097 GB, free: 7.578 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.2504, allocations: 0 / 1.097 GB, free: 7.578 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0005531/0.251, allocations: 263.4 kB / 1.098 GB, free: 7.293 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.251, allocations: 51.41 kB / 1.098 GB, free: 7.23 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.2512, allocations: 215.7 kB / 1.098 GB, free: 7.012 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.2513, allocations: 25.7 kB / 1.098 GB, free: 6.98 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.2514, allocations: 180 kB / 1.098 GB, free: 6.797 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.604e-05/0.2514, allocations: 31.73 kB / 1.098 GB, free: 6.766 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.691e-05/0.2515, allocations: 29.72 kB / 1.098 GB, free: 6.73 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.2516, allocations: 330.8 kB / 1.098 GB, free: 6.398 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.834e-05/0.2517, allocations: 43.98 kB / 1.098 GB, free: 6.355 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.2518, allocations: 116.5 kB / 1.099 GB, free: 6.211 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000235/0.2521, allocations: 176.4 kB / 1.099 GB, free: 6.008 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2521, allocations: 0 / 1.099 GB, free: 6.008 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000379/0.2525, allocations: 214.2 kB / 1.099 GB, free: 5.789 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.2525, allocations: 6.031 kB / 1.099 GB, free: 5.785 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.2525, allocations: 4 kB / 1.099 GB, free: 5.781 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001826/0.2527, allocations: 33.06 kB / 1.099 GB, free: 5.746 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.2528, allocations: 27.98 kB / 1.099 GB, free: 5.719 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00104/0.2539, allocations: 1.429 MB / 1.1 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.2541, allocations: 27.81 kB / 1.1 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.928e-05/0.2541, allocations: 11.98 kB / 1.1 GB, free: 4.109 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 (18): * Single equations (assignments): 17 * 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.0001282/0.2542, allocations: 145.8 kB / 1.101 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.278e-05/0.2543, allocations: 20 kB / 1.101 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.263e-05/0.2543, allocations: 21.39 kB / 1.101 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.2543, allocations: 0 / 1.101 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.2543, allocations: 0 / 1.101 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.2543, allocations: 4 kB / 1.101 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005805/0.2549, allocations: 483.2 kB / 1.101 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2549, allocations: 0 / 1.101 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.691e-05/0.255, allocations: 11.98 kB / 1.101 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.363e-05/0.2551, allocations: 32.78 kB / 1.101 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.2551, allocations: 0 / 1.101 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008815/0.256, allocations: 1.425 MB / 1.103 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.256, allocations: 0 / 1.103 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002839/0.2563, allocations: 244.1 kB / 1.103 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.952e-05/0.2564, allocations: 113.1 kB / 1.103 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.196e-05/0.2564, allocations: 3.938 kB / 1.103 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.2566, allocations: 4 kB / 1.103 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.134e-05/0.2566, allocations: 11.98 kB / 1.103 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.2566, allocations: 4 kB / 1.103 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001324/0.2568, allocations: 153.4 kB / 1.103 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2568, allocations: 0 / 1.103 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003418/0.2571, allocations: 59.84 kB / 1.103 GB, free: 1.16 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 (7): * Single equations (assignments): 6 * 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.0005325/0.2576, allocations: 0.7639 MB / 1.104 GB, free: 372 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004078/0.2581, allocations: 230.7 kB / 1.104 GB, free: 128 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2581, allocations: 0 / 1.104 GB, free: 128 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002154/0.2583, allocations: 167.2 kB / 1.104 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.2587, allocations: 41.91 kB / 1.104 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.2609, allocations: 2.152 MB / 1.106 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.2612, allocations: 0.7554 MB / 1.107 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001/0.2613, allocations: 21.53 kB / 1.107 GB, free: 12.81 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.533e-05/0.2614, allocations: 55.42 kB / 1.107 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of SimCode: time 3.01e-07/0.2614, allocations: 4 kB / 1.107 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0206/0.282, allocations: 4.027 MB / 1.111 GB, free: 8.867 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.035/9.317, allocations: 4.062 kB / 1.111 GB, free: 8.863 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_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_Sources_Examples_VoltageSource.fmu > Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches