Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.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.AC.OnePhase.Loads.Examples.ParallelResistors,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors",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.007201/0.007201, allocations: 99.34 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.001983/0.001983, allocations: 196 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.775/2.775, allocations: 482.4 MB / 0.7548 GB, free: 6.871 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 72.7 kB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2752, allocations: 162.2 MB / 1.241 GB, free: 9.238 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.003907/0.2791, allocations: 2.643 MB / 1.244 GB, free: 6.582 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00204/0.2812, allocations: 1.317 MB / 1.245 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.435e-05/0.2813, allocations: 4 kB / 1.245 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0006041/0.2819, allocations: 179.2 kB / 1.245 GB, free: 5.078 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0003385/0.2822, allocations: 167.3 kB / 1.246 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003401/0.2826, allocations: 159.7 kB / 1.246 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003206/0.2829, allocations: 263.2 kB / 1.246 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002701/0.2832, allocations: 145.4 kB / 1.246 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000161/0.2834, allocations: 107.6 kB / 1.246 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002362/0.2836, allocations: 123.6 kB / 1.246 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.405e-05/0.2837, allocations: 16 kB / 1.246 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002434/0.2839, allocations: 147.7 kB / 1.247 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.09e-05/0.284, allocations: 63.81 kB / 1.247 GB, free: 3.91 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.2841, allocations: 95.52 kB / 1.247 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003654/0.2845, allocations: 291.1 kB / 1.247 GB, free: 3.531 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.2845, allocations: 4 kB / 1.247 GB, free: 3.527 MB / 0.9669 GB Notification: Performance of FrontEnd: time 9.42e-07/0.2845, allocations: 0 / 1.247 GB, free: 3.527 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.2845, allocations: 0 / 1.247 GB, free: 3.527 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0007392/0.2852, allocations: 0.4909 MB / 1.247 GB, free: 2.984 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.2853, allocations: 12.03 kB / 1.247 GB, free: 2.973 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.586e-05/0.2853, allocations: 50.67 kB / 1.248 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004775/0.2858, allocations: 72.7 kB / 1.248 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002693/0.2861, allocations: 240 kB / 1.248 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.2861, allocations: 12.66 kB / 1.248 GB, free: 2.559 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.286e-05/0.2862, allocations: 20.3 kB / 1.248 GB, free: 2.539 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005086/0.2867, allocations: 308.7 kB / 1.248 GB, free: 2.211 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.2867, allocations: 3.938 kB / 1.248 GB, free: 2.207 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.248e-05/0.2867, allocations: 8 kB / 1.248 GB, free: 2.199 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.567e-05/0.2868, allocations: 28.25 kB / 1.248 GB, free: 2.172 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005124/0.2873, allocations: 256.6 kB / 1.248 GB, free: 1.922 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001571/0.2889, allocations: 1.498 MB / 1.25 GB, free: 284 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005023/0.2894, allocations: 255.2 kB / 1.25 GB, free: 12 kB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002628/0.2897, allocations: 137.6 kB / 1.25 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.2897, allocations: 0 / 1.25 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.2897, allocations: 42.5 kB / 1.25 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=15): time 9.82e-07/0.2897, allocations: 0 / 1.25 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15): time 0.0007541/0.2905, allocations: 341.3 kB / 1.251 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/0.2906, allocations: 81.11 kB / 1.251 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.2907, allocations: 179.1 kB / 1.251 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.752e-05/0.2908, allocations: 33.83 kB / 1.251 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.267e-05/0.2909, allocations: 148.2 kB / 1.251 GB, free: 15 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.224e-05/0.2909, allocations: 59.52 kB / 1.251 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.611e-05/0.291, allocations: 45.66 kB / 1.251 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.2911, allocations: 326.8 kB / 1.251 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000236/0.2914, allocations: 108.8 kB / 1.252 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002776/0.2917, allocations: 173.7 kB / 1.252 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004988/0.2922, allocations: 274.7 kB / 1.252 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.2922, allocations: 4 kB / 1.252 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005993/0.2928, allocations: 315.6 kB / 1.252 GB, free: 13.65 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.2928, allocations: 4 kB / 1.252 GB, free: 13.65 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.2928, allocations: 4 kB / 1.252 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.2928, allocations: 4 kB / 1.252 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002902/0.2931, allocations: 51.95 kB / 1.252 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.2932, allocations: 11.92 kB / 1.252 GB, free: 13.58 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001924/0.2934, allocations: 27.86 kB / 1.252 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.289e-05/0.2934, allocations: 20.16 kB / 1.252 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002719/0.2937, allocations: 188.1 kB / 1.253 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002396/0.2939, allocations: 152.5 kB / 1.253 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004326/0.2944, allocations: 255.5 kB / 1.253 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.383e-06/0.2944, allocations: 0 / 1.253 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0005227/0.2949, allocations: 275.8 kB / 1.253 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.447e-06/0.2949, allocations: 8 kB / 1.253 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-06/0.2949, allocations: 4.188 kB / 1.253 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.644e-06/0.2949, allocations: 8 kB / 1.253 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002181/0.2952, allocations: 51.91 kB / 1.253 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.2952, allocations: 7.984 kB / 1.253 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.2954, allocations: 19.94 kB / 1.253 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.2954, allocations: 12 kB / 1.253 GB, free: 12.5 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001236/0.2955, allocations: 196.1 kB / 1.254 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.197e-05/0.2956, allocations: 15.91 kB / 1.254 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005714/0.2962, allocations: 271 kB / 1.254 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.2962, allocations: 4 kB / 1.254 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.2962, allocations: 3.938 kB / 1.254 GB, free: 12 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2962, allocations: 0 / 1.254 GB, free: 12 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001091/0.2973, allocations: 0.685 MB / 1.255 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.2973, allocations: 0 / 1.255 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002388/0.2976, allocations: 47.89 kB / 1.255 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.2976, allocations: 3.938 kB / 1.255 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/0.2976, allocations: 4 kB / 1.255 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.2976, allocations: 4 kB / 1.255 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.2976, allocations: 7.984 kB / 1.255 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005762/0.2982, allocations: 446 kB / 1.255 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000114/0.2983, allocations: 117 kB / 1.255 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.2984, allocations: 11.88 kB / 1.255 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.2986, allocations: 23.97 kB / 1.255 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.268e-05/0.2986, allocations: 11.98 kB / 1.255 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.2987, allocations: 8 kB / 1.255 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001127/0.2988, allocations: 131.2 kB / 1.255 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2988, allocations: 0 / 1.255 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000468/0.2992, allocations: 83.83 kB / 1.255 GB, free: 10.32 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (16): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008846/0.3001, allocations: 0.9863 MB / 1.256 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007589/0.3009, allocations: 375.5 kB / 1.257 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3009, allocations: 4.938 kB / 1.257 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002422/0.3012, allocations: 112 kB / 1.257 GB, free: 8.816 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004648/0.3016, allocations: 48.41 kB / 1.257 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003049/0.3047, allocations: 2.466 MB / 1.259 GB, free: 6.164 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003721/0.3051, allocations: 0.744 MB / 1.26 GB, free: 5.395 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001972/0.3053, allocations: 77.45 kB / 1.26 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.3054, allocations: 59.41 kB / 1.26 GB, free: 5.262 MB / 0.9825 GB Notification: Performance of SimCode: time 2.4e-07/0.3054, allocations: 0 / 1.26 GB, free: 5.262 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02469/0.3301, allocations: 4.208 MB / 1.264 GB, free: 1.211 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.543/7.873, allocations: 8 kB / 1.264 GB, free: 1.203 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches