Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Electrical_DC_Sources_Examples_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_latest_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.006294/0.006294, allocations: 97.67 kB / 15.73 MB, free: 5.988 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.001638/0.001638, allocations: 192.3 kB / 16.67 MB, free: 5.918 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.25/1.25, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.557/2.557, allocations: 482.6 MB / 0.755 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001611/0.001611, allocations: 67.89 kB / 1.083 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2509, allocations: 162.3 MB / 1.242 GB, free: 9.891 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.004059/0.255, allocations: 3.219 MB / 1.245 GB, free: 6.652 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001763/0.2568, allocations: 1.367 MB / 1.246 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.615e-05/0.2568, allocations: 4 kB / 1.246 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008351/0.2577, allocations: 338.2 kB / 1.247 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002635/0.258, allocations: 147.2 kB / 1.247 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000282/0.2583, allocations: 151.6 kB / 1.247 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003284/0.2586, allocations: 334.9 kB / 1.247 GB, free: 4.324 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003681/0.259, allocations: 251.6 kB / 1.247 GB, free: 4.074 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001592/0.2591, allocations: 143.5 kB / 1.248 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002529/0.2594, allocations: 139.5 kB / 1.248 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.432e-05/0.2594, allocations: 24 kB / 1.248 GB, free: 3.773 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002503/0.2597, allocations: 171.6 kB / 1.248 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.388e-05/0.2598, allocations: 87.73 kB / 1.248 GB, free: 3.52 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.2599, allocations: 119.4 kB / 1.248 GB, free: 3.402 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003924/0.2603, allocations: 362.6 kB / 1.248 GB, free: 3.047 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.2603, allocations: 0 / 1.248 GB, free: 3.047 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2603, allocations: 0 / 1.248 GB, free: 3.047 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.2603, allocations: 0 / 1.248 GB, free: 3.047 MB / 0.9981 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.0007191/0.2611, allocations: 0.5454 MB / 1.249 GB, free: 2.453 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 2.961e-05/0.2611, allocations: 12.03 kB / 1.249 GB, free: 2.441 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.465e-05/0.2612, allocations: 58.73 kB / 1.249 GB, free: 2.375 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004967/0.2617, allocations: 84.67 kB / 1.249 GB, free: 2.293 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002712/0.2619, allocations: 256.8 kB / 1.249 GB, free: 2.004 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.262, allocations: 20.81 kB / 1.249 GB, free: 1.984 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.959e-05/0.262, allocations: 20.36 kB / 1.249 GB, free: 1.965 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004428/0.2624, allocations: 324.4 kB / 1.25 GB, free: 1.621 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.2625, allocations: 0 / 1.25 GB, free: 1.621 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.2625, allocations: 12 kB / 1.25 GB, free: 1.609 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.7e-05/0.2625, allocations: 16.42 kB / 1.25 GB, free: 1.594 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003331/0.2629, allocations: 217.5 kB / 1.25 GB, free: 1.383 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4313/0.6941, allocations: 1.485 MB / 1.251 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003689/0.6945, allocations: 202.1 kB / 1.252 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.227e-05/0.6946, allocations: 45.98 kB / 1.252 GB, free: 14.3 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/0.6947, allocations: 1.844 kB / 1.252 GB, free: 14.3 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.315e-05/0.6947, allocations: 33.05 kB / 1.252 GB, free: 14.26 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 2.084e-06/0.6947, allocations: 3.5 kB / 1.252 GB, free: 14.26 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.0004742/0.6952, allocations: 263.1 kB / 1.252 GB, free: 14.13 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.803e-05/0.6952, allocations: 54.42 kB / 1.252 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001628/0.6954, allocations: 204.7 kB / 1.252 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/0.6954, allocations: 27.69 kB / 1.252 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.493e-05/0.6955, allocations: 184.5 kB / 1.252 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.763e-05/0.6955, allocations: 28.62 kB / 1.252 GB, free: 13.81 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.16e-05/0.6955, allocations: 39.28 kB / 1.252 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.089e-05/0.6956, allocations: 326.9 kB / 1.253 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.951e-05/0.6957, allocations: 45.03 kB / 1.253 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.6958, allocations: 112.4 kB / 1.253 GB, free: 13.4 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001868/0.696, allocations: 166.9 kB / 1.253 GB, free: 13.32 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.696, allocations: 1.281 kB / 1.253 GB, free: 13.32 MB / 0.9981 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003111/0.6963, allocations: 222.1 kB / 1.253 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.6963, allocations: 6.094 kB / 1.253 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.6963, allocations: 2.406 kB / 1.253 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001375/0.6965, allocations: 29.8 kB / 1.253 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.6966, allocations: 32.75 kB / 1.253 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006812/0.6973, allocations: 1.431 MB / 1.255 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.6974, allocations: 20.23 kB / 1.255 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.341e-05/0.6974, allocations: 6.312 kB / 1.255 GB, free: 11.91 MB / 0.9981 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 8.747e-05/0.6975, allocations: 146.8 kB / 1.255 GB, free: 11.79 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.627e-05/0.6976, allocations: 20.69 kB / 1.255 GB, free: 11.78 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.092e-05/0.6976, allocations: 26.3 kB / 1.255 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.6976, allocations: 1.688 kB / 1.255 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.6976, allocations: 0.875 kB / 1.255 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.6976, allocations: 1.203 kB / 1.255 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004628/0.6981, allocations: 487.8 kB / 1.255 GB, free: 11.46 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.6981, allocations: 5.531 kB / 1.255 GB, free: 11.46 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.847e-05/0.6982, allocations: 14.19 kB / 1.255 GB, free: 11.46 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.891e-05/0.6983, allocations: 22.7 kB / 1.256 GB, free: 11.45 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.6983, allocations: 5.25 kB / 1.256 GB, free: 11.45 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005867/0.6989, allocations: 1.427 MB / 1.257 GB, free: 10.09 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.6989, allocations: 0 / 1.257 GB, free: 10.09 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002199/0.6991, allocations: 238.4 kB / 1.257 GB, free: 9.941 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.677e-05/0.6992, allocations: 103.8 kB / 1.257 GB, free: 9.84 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.6992, allocations: 1.734 kB / 1.257 GB, free: 9.84 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.6993, allocations: 5.297 kB / 1.257 GB, free: 9.84 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.458e-05/0.6993, allocations: 13.77 kB / 1.257 GB, free: 9.836 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.224e-06/0.6994, allocations: 3.344 kB / 1.257 GB, free: 9.836 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.647e-05/0.6995, allocations: 149 kB / 1.257 GB, free: 9.75 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6995, allocations: 3.719 kB / 1.257 GB, free: 9.75 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002878/0.6998, allocations: 55.33 kB / 1.257 GB, free: 9.738 MB / 0.9981 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.0003386/0.7001, allocations: 0.7697 MB / 1.258 GB, free: 9.035 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003274/0.7004, allocations: 228.9 kB / 1.258 GB, free: 8.898 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.7004, allocations: 0 / 1.258 GB, free: 8.898 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001586/0.7006, allocations: 166.5 kB / 1.259 GB, free: 8.77 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002996/0.7009, allocations: 34.38 kB / 1.259 GB, free: 8.762 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001731/0.7027, allocations: 2.162 MB / 1.261 GB, free: 7.082 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001529/0.7028, allocations: 0.7532 MB / 1.261 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.397e-05/0.7029, allocations: 28.56 kB / 1.261 GB, free: 6.375 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.197e-05/0.703, allocations: 60.73 kB / 1.262 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of SimCode: time 1.9e-07/0.703, allocations: 0 / 1.262 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.074/4.777, allocations: 4.02 MB / 1.265 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/18.2, allocations: 17.22 kB / 1.265 GB, free: 5.793 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Sources_Examples_VoltageSource_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Sources_Examples_VoltageSource.fmu > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches