Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad",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.001478/0.001478, allocations: 108 kB / 15.6 MB, free: 132 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.001796/0.001796, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.305/1.305, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.671/2.671, allocations: 469.4 MB / 0.742 GB, free: 7.668 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002252/0.002252, allocations: 66.11 kB / 0.9083 GB, free: 34.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2742, allocations: 159.1 MB / 1.064 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004563/0.2788, allocations: 3.072 MB / 1.067 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002717/0.2815, allocations: 1.912 MB / 1.069 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001501/0.2817, allocations: 4 kB / 1.069 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0008707/0.2826, allocations: 282.9 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004958/0.2831, allocations: 191.1 kB / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006045/0.2837, allocations: 237.4 kB / 1.069 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003582/0.2841, allocations: 326.9 kB / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003366/0.2844, allocations: 185.2 kB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002154/0.2847, allocations: 131.5 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003059/0.285, allocations: 147.5 kB / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.421e-05/0.285, allocations: 20 kB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006406/0.2857, allocations: 411.2 kB / 1.07 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.2858, allocations: 83.8 kB / 1.07 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.2859, allocations: 119.4 kB / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006733/0.2866, allocations: 482.7 kB / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2866, allocations: 4 kB / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2866, allocations: 0 / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.337e-06/0.2866, allocations: 0 / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0009233/0.2876, allocations: 0.5628 MB / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.2876, allocations: 16.03 kB / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.018e-05/0.2877, allocations: 58.72 kB / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008341/0.2885, allocations: 112.5 kB / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002993/0.2888, allocations: 251.9 kB / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.2889, allocations: 16.8 kB / 1.072 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.046e-05/0.2889, allocations: 24.36 kB / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005233/0.2894, allocations: 357.3 kB / 1.072 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.2895, allocations: 3.938 kB / 1.072 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.064e-05/0.2895, allocations: 8 kB / 1.072 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.988e-05/0.2896, allocations: 24.42 kB / 1.072 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004831/0.2901, allocations: 293.5 kB / 1.073 GB, free: 5.051 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002077/0.2921, allocations: 1.733 MB / 1.074 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004667/0.2926, allocations: 330.2 kB / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001517/0.2928, allocations: 111.8 kB / 1.075 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000102/0.2929, allocations: 85.11 kB / 1.075 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.2929, allocations: 38.44 kB / 1.075 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.653e-06/0.2929, allocations: 0 / 1.075 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23): time 0.002521/0.2955, allocations: 0.9666 MB / 1.076 GB, free: 1.523 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.2955, allocations: 88.98 kB / 1.076 GB, free: 1.418 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.2957, allocations: 207.8 kB / 1.076 GB, free: 1.207 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.2958, allocations: 33.73 kB / 1.076 GB, free: 1.168 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.992e-05/0.2959, allocations: 176 kB / 1.076 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.606e-05/0.2959, allocations: 82.84 kB / 1.076 GB, free: 0.9102 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.634e-05/0.296, allocations: 53.7 kB / 1.077 GB, free: 0.8516 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.2962, allocations: 326.8 kB / 1.077 GB, free: 0.5234 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001919/0.2964, allocations: 135.9 kB / 1.077 GB, free: 400 kB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002336/0.2966, allocations: 218.4 kB / 1.077 GB, free: 148 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004546/0.2971, allocations: 367.3 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2971, allocations: 4 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008492/0.2979, allocations: 0.505 MB / 1.078 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.2979, allocations: 4 kB / 1.078 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.298, allocations: 4 kB / 1.078 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005372/0.2985, allocations: 159.6 kB / 1.078 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002577/0.2988, allocations: 59.95 kB / 1.078 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002977/0.3018, allocations: 4.186 MB / 1.082 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002009/0.302, allocations: 24.05 kB / 1.082 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.562e-05/0.302, allocations: 15.98 kB / 1.082 GB, free: 10.44 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001623/0.3022, allocations: 161.7 kB / 1.082 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.13e-05/0.3023, allocations: 19.91 kB / 1.083 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008558/0.3031, allocations: 494.4 kB / 1.083 GB, free: 9.746 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.3031, allocations: 4 kB / 1.083 GB, free: 9.742 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3032, allocations: 0 / 1.083 GB, free: 9.742 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.3032, allocations: 0 / 1.083 GB, free: 9.742 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001529/0.3047, allocations: 1.017 MB / 1.084 GB, free: 8.633 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3047, allocations: 0 / 1.084 GB, free: 8.633 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001339/0.3048, allocations: 35.92 kB / 1.084 GB, free: 8.598 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003903/0.3052, allocations: 135.4 kB / 1.084 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.007e-05/0.3053, allocations: 12 kB / 1.084 GB, free: 8.441 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00264/0.3079, allocations: 4.182 MB / 1.088 GB, free: 3.93 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.3079, allocations: 4 kB / 1.088 GB, free: 3.926 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007798/0.3087, allocations: 0.6293 MB / 1.089 GB, free: 3.242 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.3089, allocations: 128.8 kB / 1.089 GB, free: 3.098 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.224e-05/0.3089, allocations: 11.91 kB / 1.089 GB, free: 3.086 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002272/0.3091, allocations: 19.98 kB / 1.089 GB, free: 3.066 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.594e-05/0.3092, allocations: 23.97 kB / 1.089 GB, free: 3.043 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/0.3092, allocations: 11.94 kB / 1.089 GB, free: 3.031 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001324/0.3094, allocations: 153.5 kB / 1.089 GB, free: 2.883 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3094, allocations: 0 / 1.089 GB, free: 2.883 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005023/0.3099, allocations: 91.98 kB / 1.089 GB, free: 2.793 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (21): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001048/0.3109, allocations: 1.201 MB / 1.09 GB, free: 1.527 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000905/0.3119, allocations: 0.5914 MB / 1.091 GB, free: 0.9102 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.3119, allocations: 4.562 kB / 1.091 GB, free: 0.9062 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004865/0.3124, allocations: 397.3 kB / 1.091 GB, free: 0.4922 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005127/0.3129, allocations: 51.84 kB / 1.091 GB, free: 452 kB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003834/0.3167, allocations: 3.328 MB / 1.095 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003036/0.3171, allocations: 0.7869 MB / 1.095 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001735/0.3172, allocations: 62.25 kB / 1.096 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.3173, allocations: 71.41 kB / 1.096 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of SimCode: time 2.7e-07/0.3174, allocations: 4 kB / 1.096 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.3437, allocations: 6.61 MB / 1.102 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.59, allocations: 3.281 kB / 1.102 GB, free: 5.488 MB / 0.8575 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches